|  | Home · Overviews · Examples

# QStyleOptionToolBoxV2 Class Reference
[com.trolltech.qt.gui module]

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

Inherits `QStyleOptionToolBox`.

## 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`.