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

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
  • 31 public functions inherited from QObject

Public Slots

void click()
  • 1 public slot inherited from QObject

Signals

void clicked()

Static Public Members

const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

  • 9 protected functions inherited from QObject

Detailed Description

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.

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.

[virtual] 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.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.