Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QStyleOptionToolBox Class Reference
[QtGui module]

The QStyleOptionToolBox class is used to describe the parameters needed for drawing a tool box. More...

#include <QStyleOptionToolBox>

Inherits QStyleOption.

Public Functions

Public Variables

Static Public Members


Detailed Description

The QStyleOptionToolBox class is used to describe the parameters needed for drawing a tool box.

QStyleOptionToolBox contains all the information that QStyle functions need to draw QToolBox.

For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.

For an example demonstrating how style options can be used, see the Styles example.

See also QStyleOption and QToolBox.


Member Function Documentation

QStyleOptionToolBox::QStyleOptionToolBox ()

Creates a QStyleOptionToolBox, initializing the members variables to their default values.

QStyleOptionToolBox::QStyleOptionToolBox ( const QStyleOptionToolBox & other )

Constructs a copy of the other style option.


Member Variable Documentation

const int QStyleOptionToolBox::Type

Equals SO_ToolBox.

const int QStyleOptionToolBox::Version

Equals 1.

QIcon QStyleOptionToolBox::icon

This variable holds the icon for the tool box tab.

The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename.

QString QStyleOptionToolBox::text

This variable holds the text for the tool box tab.

The default value is an empty string.


Copyright © 2006 Trolltech Trademarks
Qt 4.1.12