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

QStyleOptionToolBoxV2 Class Reference
[
QtGui module]

The QStyleOptionToolBoxV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above. More...

 #include <QStyleOptionToolBoxV2>

Inherits QStyleOptionToolBox.

This class was introduced in Qt 4.3.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

The QStyleOptionToolBoxV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above.

QStyleOptionToolBoxV2 inherits QStyleOptionToolBox which is used for drawing the tabs in a QToolBox.

An instance of the QStyleOptionToolBoxV2 class has type SO_ToolBox and version 2. The type is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleOption subclass and your own styles. The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.

If you create your own QStyle subclass, you should handle both QStyleOptionToolBox and QStyleOptionToolBoxV2.

See also QStyleOptionToolBox and QStyleOption.


Member Type Documentation

enum QStyleOptionToolBoxV2::SelectedPosition

enum QStyleOptionToolBoxV2::StyleOptionVersion

enum QStyleOptionToolBoxV2::TabPosition


Member Function Documentation

QStyleOptionToolBoxV2::QStyleOptionToolBoxV2 ()

Contsructs a QStyleOptionToolBoxV2 object.

QStyleOptionToolBoxV2::QStyleOptionToolBoxV2 ( const QStyleOptionToolBoxV2 & other )

Constructs a QStyleOptionToolBoxV2 copy of the other style option.

QStyleOptionToolBoxV2::QStyleOptionToolBoxV2 ( const QStyleOptionToolBox & other )

Constructs a QStyleOptionToolBoxV2 copy of the other style option which can be either of the QStyleOptionToolBoxV2 or QStyleOptionToolBox types.

If the other style option's version is 1, the new style option's position value is set to QStyleOptionToolBoxV2::Beginning and selectedPosition is set to QStyleOptionToolBoxV2::NotAdjacent. If its version is 2, the position selectedPosition values are simply copied to the new style option.

See also version.

QStyleOptionToolBoxV2 & QStyleOptionToolBoxV2::operator= ( const QStyleOptionToolBox & other )

Assigns the other style option to this style option. The other style option can be either of the QStyleOptionToolBoxV2 or QStyleOptionToolBox types.

If the other style option's version is 1, this style option's position and selectedPosition values are set to QStyleOptionToolBoxV2::Begining and QStyleOptionToolBoxV2::NotAdjacent respectively. If its version is 2, these values are simply copied to this style option.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.0beta