Home · All Classes · Modules

QStyleOptionComboBox Class Reference
[QtGui module]

The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox. More...

Inherits QStyleOptionComplex.

Methods

Members

Static Members


Detailed Description

The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.

The QStyleOptionComboBox class is used for drawing QComboBox.


Method Documentation

QStyleOptionComboBox.__init__ (self)

Creates a QStyleOptionComboBox. The members variables are initialized to default values.

QStyleOptionComboBox.__init__ (self, QStyleOptionComboBox other)

Constructs a copy of the other style option.


Member Documentation

QIcon currentIcon

This variable holds the icon for the current item of the combo box.

QString currentText

This variable holds the text for the current item of the combo box.

bool editable

This variable holds whether or not the combobox is editable or not.

See also QComboBox.isEditable().

bool frame

This variable holds indicates whether whether the combo box has a frame.

QSize iconSize

This variable holds the icon size for the current item of the combo box.

QRect popupRect

This variable holds the popup rectangle for the combobox.

This variable is currently unused, you can safely ignore it,

See also SC_ComboBoxListBoxPopup.

int Type

This member should be treated as a constant.

Equals SO_ComboBox.

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