DtkWidget 5.6.0.2
DTK Widget module
|
类似 DDoubleSpinBox. 更多...
Public 槽 | |
void | setAlert (bool alert) |
D_DECL_DEPRECATED void | setDefaultValue (double defaultValue) |
信号 | |
void | alertChanged (bool alert) |
D_DECL_DEPRECATED void | defaultValueChanged (double defaultValue) |
Public 成员函数 | |
DDoubleSpinBox (QWidget *parent=nullptr) | |
bool | isAlert () const |
void | showAlertMessage (const QString &text, int duration=3000) |
显示指定的文本消息,超过指定时间后警告消息消失. 更多... | |
void | showAlertMessage (const QString &text, QWidget *follower, int duration=3000) |
显示指定的文本消息,超过指定时间后警告消息消失. 更多... | |
D_DECL_DEPRECATED double | defaultValue () const |
QLineEdit * | lineEdit () const |
void | setEnabledEmbedStyle (bool enabled) |
属性 | |
bool | alert |
double | defaultValue |
类似 DDoubleSpinBox.
\inmodule dtkwidget
void Dtk::Widget::DDoubleSpinBox::showAlertMessage | ( | const QString & | text, |
int | duration = 3000 |
||
) |
显示指定的文本消息,超过指定时间后警告消息消失.
text text警告的文本 duration 显示的时间长度,单位毫秒
void Dtk::Widget::DDoubleSpinBox::showAlertMessage | ( | const QString & | text, |
QWidget * | follower, | ||
int | duration = 3000 |
||
) |
显示指定的文本消息,超过指定时间后警告消息消失.
text text警告的文本 follower 指定文本消息跟随的对象 duration 显示的时间长度,单位毫秒