QWinThumbnailToolButton Class
The QWinThumbnailToolButton class represents a button in a thumbnail toolbar. More...
| Header: | #include <QWinThumbnailToolButton> |
| qmake: | QT += winextras |
| Since: | Qt 5.2 |
| Inherits: | QObject |
This class was introduced in Qt 5.2.
Properties
|
|
- 1 property inherited from QObject
Public Functions
| QWinThumbnailToolButton(QObject *parent = nullptr) | |
| virtual | ~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 |
- 30 public functions inherited from QObject
Public Slots
| void | click() |
- 1 public slot inherited from QObject
Signals
| void | clicked() |
- 2 signals inherited from QObject
Related Non-Members
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
Detailed Description
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.
See also QWinThumbnailToolBar.
Property Documentation
dismissOnClick : bool
This property holds whether the window thumbnail is dismissed after a button click
The default value is false.
Access functions:
| 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.
Access functions:
| bool | isEnabled() const |
| void | setEnabled(bool enabled) |
See also 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.
Access functions:
| bool | isFlat() const |
| void | setFlat(bool flat) |
icon : QIcon
This property holds the icon of the button
Access functions:
| 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.
Access functions:
| bool | isInteractive() const |
| void | setInteractive(bool interactive) |
See also enabled.
toolTip : QString
This property holds the tooltip of the button
Access functions:
| QString | toolTip() const |
| void | setToolTip(const QString &toolTip) |
visible : bool
This property holds whether the button is visible
The default value is true.
Access functions:
| bool | isVisible() const |
| void | setVisible(bool visible) |
Member Function Documentation
QWinThumbnailToolButton::QWinThumbnailToolButton(QObject *parent = nullptr)
Constructs a QWinThumbnailToolButton with the specified parent.
[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.
[virtual] QWinThumbnailToolButton::~QWinThumbnailToolButton()
Destroys the QWinThumbnailToolButton.