QStyleOptionTab Class The QStyleOptionTab class is used to describe the parameters for drawing a tab bar. More...  
 Header:
 #include <QStyleOptionTab> 


 qmake:
 QT += widgets


 Inherits:
 QStyleOption



 List of all members, including inherited members Obsolete members  Public Types  
 enum 

CornerWidget { NoCornerWidgets, LeftCornerWidget, RightCornerWidget }
 
 flags 
CornerWidgets
 
 enum 

SelectedPosition { NotAdjacent, NextIsSelected, PreviousIsSelected }
 
 enum 

StyleOptionType { Type }
 
 enum 

StyleOptionVersion { Version }
 
 enum 

TabFeature { None, HasFrame }
 
 flags 
TabFeatures
 
 enum 

TabPosition { Beginning, Middle, End, OnlyOneTab }
  Public Functions  
 

QStyleOptionTab()
 
 

QStyleOptionTab(const QStyleOptionTab &other)
   2 public functions inherited from QStyleOption
  Public Variables  
 CornerWidgets 
cornerWidgets
 
 bool 
documentMode
 
 QIcon 
icon
 
 QSize 
iconSize
 
 QSize 
leftButtonSize
 
 TabPosition 
position
 
 QSize 
rightButtonSize
 
 int 
row
 
 SelectedPosition 
selectedPosition
 
 QTabBar8b7c:f320:99b9:690f:4595:cd17:293a:c069Shape 
shape
 
 QString 
text
   8 public variables inherited from QStyleOption
  Detailed Description The QStyleOptionTab class is used to describe the parameters for drawing a tab bar. The QStyleOptionTab class is used for drawing several built-in Qt widgets including QTabBar and the panel for QTabWidget. An instance of the QStyleOptionTab class has type SO_Tab and version 3. 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 do not need to check it. For an example demonstrating how style options can be used, see the Styles example. See also QStyleOption. Member Type Documentation 
enum QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069CornerWidgetflags QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069CornerWidgets
 These flags indicate the corner widgets in a tab. 

Constant
Value
Description
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069NoCornerWidgets
0x00
There are no corner widgets
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069LeftCornerWidget
0x01
Left corner widget
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069RightCornerWidget
0x02
Right corner widget
  The CornerWidgets type is a typedef for QFlags<CornerWidget>. It stores an OR combination of CornerWidget values. See also cornerWidgets. 
enum QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069SelectedPosition
 This enum describes the position of the selected tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab. 

Constant
Value
Description
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069NotAdjacent
0
The tab is not adjacent to a selected tab (or is the selected tab).
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069NextIsSelected
1
The next tab (typically the tab on the right) is selected.
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069PreviousIsSelected
2
The previous tab (typically the tab on the left) is selected.
  See also selectedPosition. 
enum QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069StyleOptionType
 This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. 

Constant
Value
Description
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069Type
SO_Tab
The type of style option provided (SO_Tab for this class).
  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. See also StyleOptionVersion. 
enum QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069StyleOptionVersion
 This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. 

Constant
Value
Description
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069Version
3
3
  The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it. See also StyleOptionType. 
enum QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069TabFeatureflags QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069TabFeatures
 Describes the various features that a tab button can have. 

Constant
Value
Description
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069None
0x00
A normal tab button.
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069HasFrame
0x01
The tab button is positioned on a tab frame
  The TabFeatures type is a typedef for QFlags<TabFeature>. It stores an OR combination of TabFeature values. See also features. 
enum QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069TabPosition
 This enum describes the position of the tab. 

Constant
Value
Description
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069Beginning
0
The tab is the first tab in the tab bar.
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069Middle
1
The tab is neither the first nor the last tab in the tab bar.
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069End
2
The tab is the last tab in the tab bar.
 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069OnlyOneTab
3
The tab is both the first and the last tab in the tab bar.
  See also position. Member Function Documentation 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069QStyleOptionTab() Constructs a QStyleOptionTab object, initializing the members variables to their default values. 
QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069QStyleOptionTab(const QStyleOptionTab &other) Constructs a copy of the other style option.  Member Variable Documentation 
CornerWidgets QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069cornerWidgets
 This variable holds an OR combination of CornerWidget values indicating the corner widgets of the tab bar The default value is NoCornerWidgets. See also CornerWidget. 
bool QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069documentMode
 This variable holds whether the tabbar is in document mode. The default value is false; 
QIcon QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069icon
 This variable holds the icon for the tab The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename. 
QSize QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069iconSize
 This variable holds the size for the icons The default value is QSize(-1, -1), i.e. an invalid size; use QStyl8b7c:f320:99b9:690f:4595:cd17:293a:c069pixelMetric() to find the default icon size for tab bars. See also QTabBar8b7c:f320:99b9:690f:4595:cd17:293a:c069iconSize(). 
QSize QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069leftButtonSize
 This variable holds the size for the left widget on the tab. The default value is QSize(-1, -1), i.e. an invalid size; 
TabPosition QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069position
 This variable holds the position of the tab in the tab bar The default value is Beginning, i.e. the tab is the first tab in the tab bar. 
QSize QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069rightButtonSize
 This variable holds the size for the right widget on the tab. The default value is QSize(-1, -1), i.e. an invalid size; 
int QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069row
 This variable holds which row the tab is currently in The default value is 0, indicating the front row. Currently this property can only be 0. 
SelectedPosition QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069selectedPosition
 This variable holds the position of the selected tab in relation to this tab The default value is NotAdjacent, i.e. the tab is not adjacent to a selected tab nor is it the selected tab. 
QTabBar8b7c:f320:99b9:690f:4595:cd17:293a:c069Shape QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069shape
 This variable holds the tab shape used to draw the tab; by default QTabBar8b7c:f320:99b9:690f:4595:cd17:293a:c069RoundedNorth See also QTabBar8b7c:f320:99b9:690f:4595:cd17:293a:c069Shape. 
QString QStyleOptionT8b7c:f320:99b9:690f:4595:cd17:293a:c069text
 This variable holds the text of the tab The default value is an empty string. 

    
{'path': 'public/docs/qt~5.9/qstyleoptiontab.html', 'source': 'DevDocs.IO'}