Home · All Classes · Modules

QStyleOptionButton Class Reference
[QtGui module]

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

Inherits QStyleOption.

Types

Methods

Members

Static Members


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.


Type Documentation

QStyleOptionButton.ButtonFeature

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

Constant Value Description
QStyleOptionButton.None 0x00 Indicates a normal push button.
QStyleOptionButton.Flat 0x01 Indicates a flat push button.
QStyleOptionButton.HasMenu 0x02 Indicates that the button has a drop down menu.
QStyleOptionButton.DefaultButton 0x04 Indicates that the button is a default button.
QStyleOptionButton.AutoDefaultButton 0x08 Indicates that the button is an auto default button.


The ButtonFeatures type is a typedef for QFlags<ButtonFeature>. It stores an OR combination of ButtonFeature values.

See also features.


Method Documentation

QStyleOptionButton.__init__ (self)

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

QStyleOptionButton.__init__ (self, QStyleOptionButton other)

Constructs a copy of the other style option.


Member Documentation

ButtonFeatures features

This variable holds the features for the button.

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

See also ButtonFeature.

QIcon icon

This variable holds the icon of the button.

See also iconSize.

QSize iconSize

This variable holds the size of the icon for the button.

QString text

This variable holds the text of the button.

int Type

This member should be treated as a constant.

Equals SO_Button.

int Version

This member should be treated as a constant.

Equals 1.


PyQt 4.0.1 for X11Copyright © Riverbank Computing Ltd and Trolltech AS 2006Qt 4.1.4