Home · All Classes · Modules

QStyleOptionComplex Class Reference
[QtGui module]

The QStyleOptionComplex class is used to hold parameters that are common to all complex controls. More...

Inherits QStyleOption.

Inherited by QStyleOptionComboBox, QStyleOptionGroupBox, QStyleOptionSlider, QStyleOptionSpinBox, QStyleOptionTitleBar and QStyleOptionToolButton.

Methods

Members

Static Members


Detailed Description

The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.

This class is not used on its own. Instead it is used to derive other complex control options, for example QStyleOptionSlider and QStyleOptionSpinBox.


Method Documentation

QStyleOptionComplex.__init__ (self, int version = QStyleOptionComplex.Version, int type = QStyleOption.SO_Complex)

Constructs a QStyleOptionComplex of type type and version version. Usually this constructor is called by subclasses.

The subControls member is initialized to QStyle.SC_All. The activeSubControls member is initialized to QStyle.SC_None.

QStyleOptionComplex.__init__ (self, QStyleOptionComplex other)

Constructs a copy of the other style option.


Member Documentation

QStyle.SubControls activeSubControls

This variable holds the sub-controls that are active for the complex control.

This a bitwise OR of the various sub-controls that are active (pressed) for the complex control.

See also QStyle.SubControl.

QStyle.SubControls subControls

This variable holds the sub-controls that need to be painted.

This is a bitwise OR of the various sub-controls that need to be drawn for the complex control.

See also QStyle.SubControl.

int Type

This member should be treated as a constant.

Equals SO_Complex.

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