Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button. More...
#include <QStyleOptionToolButton>
Inherits QStyleOptionComplex.
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button.
The QStyleOptionToolButton class is used for drawing QToolButton.
Describes the various features that a tool button can have.
Constant | Value | Description |
---|---|---|
QStyleOptionToolButton::None | 0x00 | A normal tool button. |
QStyleOptionToolButton::Arrow | 0x01 | The tool button is an arrow. |
QStyleOptionToolButton::Menu | 0x04 | The tool button has a menu. |
QStyleOptionToolButton::PopupDelay | 0x08 | There is a delay to showing the menu. |
The ToolButtonFeatures type is a typedef for QFlags<ToolButtonFeature>. It stores an OR combination of ToolButtonFeature values.
See also features, QToolButton::toolButtonStyle(), and QToolButton::popupMode().
Constructs a QStyleOptionToolButton. The members variables are initialized to default values.
Constructs a copy of the other style option.
Equals SO_ToolButton.
Equals 1.
This variable holds the direction of the arrow for the tool button.
This value is only used if features includes Arrow.
This variable holds the features of the tool button.
This variable is a bitwise OR describing the features of the button.
See also ToolButtonFeature.
This variable holds the font that is used for the text.
This value is only used if toolButtonStyle is Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or Qt::ToolButtonTextOnly
This variable holds the icon for the tool button.
See also iconSize.
This variable holds the size of the icon for the tool button.
This variable holds the position of the tool button.
This variable holds the text of the tool button.
This value is only used if toolButtonStyle is Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or Qt::ToolButtonTextOnly
This variable holds used to describe the appearance of a tool button.
See also QToolButton::toolButtonStyle().
Copyright © 2005 Trolltech | Trademarks | Qt 4.1.0 |