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>

Part of the QtGui module.

Inherits QStyleOption.

Public Types

Properties

Public Functions


Detailed Description

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

The QStyleOptionButton class is used to draw QPushButton, QCheckBox, and QRadioButton.

See also QStyleOptionToolButton.


Member Type Documentation

enum QStyleOptionButton::ButtonFeature
flags QStyleOptionButton::ButtonFeatures

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

ConstantValueDescription
QStyleOptionButton::None0x00Indicates a normal push button.
QStyleOptionButton::Flat0x01Indicates a flat push button.
QStyleOptionButton::HasMenu0x02Indicates that the button has a drop down menu.
QStyleOptionButton::DefaultButton0x04Indicates that the button is a default button.
QStyleOptionButton::AutoDefaultButton0x08Indicates that the button is an auto default button.

The ButtonFeatures type stores an OR combination of ButtonFeature values.

See also features.


Property Documentation

features : const 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 : const QIcon

This property holds the icon of the button.

text : const QString

This property holds the text of the button.


Member Function Documentation

QStyleOptionButton::QStyleOptionButton ()

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

QStyleOptionButton::QStyleOptionButton ( const QStyleOptionButton & other )


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2