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.

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 class is used for drawing QToolButton.


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.

This value is only used if features includes Arrow.

features : ToolButtonFeatures

This property holds the features of the tool button.

This variable 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.

This value is only used if features includes TextLabel.

icon : QIcon

This property holds the icon for the tool button.

pos : QPoint

This property holds the position of the tool button.

text : QString

This property holds the text of the tool button.

This value is only used if features includes TextLabel.

textPosition : QToolButton::TextPosition

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

This value is only used if features includes TextLabel.


Member Function Documentation

QStyleOptionToolButton::QStyleOptionToolButton ()

Constructs a QStyleOptionToolButton. The members variables are initialized to default values.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp2