DtkWidget 5.6.0.2
DTK Widget module
|
DToolTip类似于 QToolTip 功能的类. 更多...
Public 成员函数 | |
DToolTip (const QString &text, bool completionClose=true) | |
DToolTip的构造函数. 更多... | |
QSize | sizeHint () const override |
DToolTip::sizeHint. 更多... | |
void | show (const QPoint &pos, int duration) |
DToolTip::show设置提示消息出现的位置. 更多... | |
![]() | |
DTipLabel (const QString &text=QString(), QWidget *parent=nullptr) | |
DTipLabel的构造函数 text 文本信息 parent 参数被发送到 QLabel 构造函数。 | |
void | show (const QPoint &pos) |
DTipLabel::show显示在指定的位置上 pos 显示位置 | |
void | setForegroundRole (DPalette::ColorType color) |
DTipLabel::setForegroundRole显示的字体颜色 color 字体颜色 | |
![]() | |
DLabel (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
DLabel的构造函数. parent 参数被发送到 QLabel 构造函数。 | |
DLabel (const QString &text, QWidget *parent=nullptr) | |
DLabel的构造函数. text 文本信息 parent 参数被发送到 QLabel 构造函数。 | |
void | setForegroundRole (QPalette::ColorRole role) |
DLabel::setForegroundRole 显示的字体颜色 role 字体颜色(QPalette::ColorRole) | |
void | setForegroundRole (DPalette::ColorType color) |
DLabel::setForegroundRole显示的字体颜色 color 字体颜色 | |
void | setElideMode (Qt::TextElideMode elideMode) |
DLabel::setElideMode 设置省略号显示的模式 elideMode 省略模式枚举 | |
Qt::TextElideMode | elideMode () const |
DLabel::elideMode 获取省略号的模式 更多... | |
额外继承的成员函数 | |
![]() | |
void | initPainter (QPainter *painter) const override |
void | paintEvent (QPaintEvent *event) override |
![]() | |
DLabel (DLabelPrivate &dd, QWidget *parent=nullptr) | |
DLabel::DLabel 构造函数 dd 私有类成员变量 parent 父控件 | |
void | initPainter (QPainter *painter) const override |
DLabel::initPainter 初始化 painter painter painter 形参 | |
void | paintEvent (QPaintEvent *event) override |
DLabel::paintEvent event 消息事件 更多... | |
|
explicit |
DToolTip的构造函数.
text 文本信息 completionClose 提示消息消失后是否销毁
void Dtk::Widget::DToolTip::show | ( | const QPoint & | pos, |
int | duration | ||
) |
DToolTip::show设置提示消息出现的位置.
pos 提示消息位置 duration 提示消息存在时间,单位毫秒
|
override |