Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QStyleOptionToolButton Class Reference

The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button. More...

#include <QStyleOptionToolButton>

Inherits QStyleOptionComplex.

List of all members.

Public Types

Read-Only Properties

Public Functions


Detailed Description

The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button.

The QStyleOptionToolButton structure is used for drawing QToolButtons


Member Type Documentation

enum QStyleOptionToolButton::ToolButtonFeature
typedef QStyleOptionToolButton::ToolButtonFeatures

Describes the various features that a tool button can have.

QStyleOptionToolButton::NoneA normal tool button.
QStyleOptionToolButton::ArrowThe tool button is an arrow.
QStyleOptionToolButton::TextLabelThe tool button has a text label.
QStyleOptionToolButton::MenuThe tool button has a menu.
QStyleOptionToolButton::PopupDelayThere is a delay to showing the menu.
QStyleOptionToolButton::BigPixmapThe tool button uses big pixmaps.

The ToolButtonFeatures typedef can store a combination of ToolButtonFeature values.

See also features, QToolButton::usesTextLabel(), QToolButton::popupDelay(), and QToolButton::usesBigPixmap().


Property Documentation

arrowType : Qt::ArrowType

This property holds the direction of the arrow for the tool button.

Note that this is only used if the Arrow feature is part of the features.

See also ToolButtonFeatures.

bgRole : QPalette::ColorRole

This property holds the background role of the tool button.

See also QWidget::backgroundRole().

features : ToolButtonFeatures

This property holds the features of the tool button.

This is a bitwise OR describing the features of the button.

See also ToolButtonFeature.

font : QFont

This property holds the font that is used for the text.

Note that this is only used if the TextLabel feature is part of the features.

See also ToolButtonFeatures.

icon : QIconSet

This property holds the iconset (if any) for the tool button.

pos : QPoint

This property holds the position of the tool button.

text : QString

This property holds the text (if any) of the tool button.

Note that this is only used if the TextLabel feature is part of the features.

See also ToolButtonFeatures.

textPosition : QToolButton::TextPosition

This property holds the position of the text in the tool button.

Note that this is only used if the TextLabel feature is part of the features.

See also ToolButtonFeatures.


Member Function Documentation

QStyleOptionToolButton::QStyleOptionToolButton ( int version )

Construct a QStyleOptionToolButton with version version.

The values of the structure are either zero, empty, or null. It is the responsibility of the developer to set them correctly.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1