Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QStyleOptionTab Class Reference

The QStyleOptionTab class is used to describe the parameters for drawing a tab bar. More...

#include <QStyleOptionTab>

Inherits QStyleOption.

Public Types

Read-Only Properties

Public Functions


Detailed Description

The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.

The QStyleOptionTab class is used for drawing QTabBar and the pane for QTabWidget.


Member Type Documentation

enum QStyleOptionTab::SelectedPosition

QStyleOptionTab::NotAdjacentThe tab is not adjacent to a selected tab (or is the selected tab).
QStyleOptionTab::NextIsSelectedThe next tab (typically the tab on the right) is selected.
QStyleOptionTab::PreviousIsSelectedThe previous tab (typically the tab on the left) is selected.

See also selectedPosition.

enum QStyleOptionTab::TabPosition

QStyleOptionTab::BeginningThe tab is the first tab in the tab bar.
QStyleOptionTab::MiddleThe tab is neither the first nor the last tab in the tab bar.
QStyleOptionTab::EndThe tab is the last tab in the tab bar.
QStyleOptionTab::OnlyOneTabThe tab is both the first and the last tab in the tab bar.

See also position.


Property Documentation

icon : QIcon

This property holds the icon for the tab.

position : TabPosition

This property holds the position of the tab in the tab bar.

row : int

This property holds which row the tab is currently in.

0 indicates the front row.

Currently this property can only be 0.

selectedPosition : SelectedPosition

This property holds the position of the selected tab in relation to this tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab.

shape : QTabBar::Shape

This property holds the tab shape used to draw the tab.

See also QTabBar::Shape.

text : QString

This property holds the text of the tab.


Member Function Documentation

QStyleOptionTab::QStyleOptionTab ()

Constructs a QStyleOptionTab object. The members variables are initialized to default values.


Copyright © 2004 Trolltech Trademarks
Qt 4.0.0-b1