QWinThumbnailToolButton Class
The QWinThumbnailToolButton class represents a button in a thumbnail toolbar. 更多...
头文件: | #include <QWinThumbnailToolButton> |
qmake: | QT += winextras |
开始支持版本: | Qt 5.2 |
基类: | QObject |
属性
|
|
- 1 个属性继承自 QObject
公有函数
QWinThumbnailToolButton(QObject *parent = Q_NULLPTR) | |
~QWinThumbnailToolButton() | |
bool | dismissOnClick() const |
QIcon | icon() const |
bool | isEnabled() const |
bool | isFlat() const |
bool | isInteractive() const |
bool | isVisible() const |
void | setDismissOnClick(bool dismiss) |
void | setEnabled(bool enabled) |
void | setFlat(bool flat) |
void | setIcon(const QIcon &icon) |
void | setInteractive(bool interactive) |
void | setToolTip(const QString &toolTip) |
void | setVisible(bool visible) |
QString | toolTip() const |
- 32 个公有函数继承自 QObject
公有槽函数
void | click() |
- 1 个公有槽函数继承自 QObject
信号
void | clicked() |
- 2 个信号继承自 QObject
其他继承的成员
详细描述
The QWinThumbnailToolButton class represents a button in a thumbnail toolbar.
Buttons in a QWinThumbnailToolBar are instances of QWinThumbnailToolButton. It provides a set of properties for specifying the attributes of a thumbnail toolbar button. It also provides a signal that is emitted whenever the button is clicked, and a slot to perform clicks programmatically.
属性
dismissOnClick : bool
This property holds whether the window thumbnail is dismissed after a button click
The default value is false
.
访问函数:
bool | dismissOnClick() const |
void | setDismissOnClick(bool dismiss) |
enabled : bool
This property holds whether the button is enabled
The default value is true
.
A disabled button does not react to user interaction, and is also visually disabled.
访问函数:
bool | isEnabled() const |
void | setEnabled(bool enabled) |
参见 interactive.
flat : bool
This property holds whether the button is flat
The default value is false
.
A flat button does not draw a background nor a frame - only an icon.
访问函数:
bool | isFlat() const |
void | setFlat(bool flat) |
icon : QIcon
This property holds the icon of the button
访问函数:
QIcon | icon() const |
void | setIcon(const QIcon &icon) |
interactive : bool
This property holds whether the button is interactive
The default value is true
.
A non-interactive button does not react to user interaction, but is still visually enabled. A typical use case for non- interactive buttons are notification icons.
访问函数:
bool | isInteractive() const |
void | setInteractive(bool interactive) |
参见 enabled.
toolTip : QString
This property holds the tooltip of the button
访问函数:
QString | toolTip() const |
void | setToolTip(const QString &toolTip) |
visible : bool
This property holds whether the button is visible
The default value is true
.
访问函数:
bool | isVisible() const |
void | setVisible(bool visible) |
成员函数
QWinThumbnailToolButton::QWinThumbnailToolButton(QObject *parent = Q_NULLPTR)
Constructs a QWinThumbnailToolButton with the specified parent.
QWinThumbnailToolButton::~QWinThumbnailToolButton()
Destroys the QWinThumbnailToolButton.
[slot]
void QWinThumbnailToolButton::click()
Performs a click. The clicked() signal is emitted as appropriate.
This function does nothing if the button is disabled or non-interactive.
[signal]
void QWinThumbnailToolButton::clicked()
This signal is emitted when the button is clicked.