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

QStyleOptionButton Class Reference

The QStyleOptionButton class is used to describe the parameters for drawing buttons. More...

#include <QStyleOptionButton>

Inherits QStyleOption.

List of all members.

Public Types

Read-Only Properties

Public Functions


Detailed Description

The QStyleOptionButton class is used to describe the parameters for drawing buttons.

The QStyleOptionButton structure is used to draw QPushbuttons, QCheckBoxes, and QRadioButtons. QStyleOptionToolButton is used to draw a QToolButton.


Member Type Documentation

enum QStyleOptionButton::ButtonFeature
typedef QStyleOptionButton::ButtonFeatures

This enum describles the different types of features a push button can have.

QStyleOptionButton::NoneIndicates a normal push button.
QStyleOptionButton::FlatIndicates a flat push button.
QStyleOptionButton::HasMenuIndicates that the button has a drop down menu.

The ButtonFeatures typedef can store a combination of ButtonFeature values.

See also QStyleOptionButton::features.


Property Documentation

features : ButtonFeatures

This property holds the features for the button.

This variable is a bitwise OR of the features that describe this button.

See also ButtonFeature.

icon : QIconSet

This property holds the iconset of the button (if any).

text : QString

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


Member Function Documentation

QStyleOptionButton::QStyleOptionButton ( int version )

Constructs a QStyleOptionButton with version version. The rest of the parameters are either zero, null, or empty. It is the developer's responsibilty to populate the structure with the proper parameters.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1