IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QWinThumbnailToolButton Class

The QWinThumbnailToolButton class represents a button in a thumbnail toolbar.

This class was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QWinThumbnailToolButton Class

  • Header: QWinThumbnailToolButton

  • Since: Qt 5.2

  • qmake: QT += winextras

  • Inherits: QObject

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

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

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:

  • icon() const

  • void setIcon(const &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

See also enabled

toolTip : QString

This property holds the tooltip of the button

Access functions:

  • toolTip() const

  • void setToolTip(const &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

 

[explicit] QWinThumbnailToolButton::QWinThumbnailToolButton(QObject *parent = nullptr)

Constructs a QWinThumbnailToolButton with the specified parent.

[virtual] QWinThumbnailToolButton::~QWinThumbnailToolButton()

Destroys the QWinThumbnailToolButton.

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.

void QWinThumbnailToolButton::clicked()

This signal is emitted when the button is clicked.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+