- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QStyleOptionTabV4
public class QStyleOptionTab extends QStyleOption implements Cloneable
Used to describe the parameters for drawing a tab bar
Java wrapper for Qt class QStyleOptionTab
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStyleOptionTab.CornerWidget
Java wrapper for Qt enum QStyleOptionTab::CornerWidgetstatic class
QStyleOptionTab.CornerWidgets
QFlags type for enumQStyleOptionTab.CornerWidget
static class
QStyleOptionTab.SelectedPosition
Java wrapper for Qt enum QStyleOptionTab::SelectedPositionstatic class
QStyleOptionTab.TabFeature
Java wrapper for Qt enum QStyleOptionTab::TabFeaturestatic class
QStyleOptionTab.TabFeatures
QFlags type for enumQStyleOptionTab.TabFeature
static class
QStyleOptionTab.TabPosition
Java wrapper for Qt enum QStyleOptionTab::TabPosition -
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionTab()
protected
QStyleOptionTab(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionTab(QStyleOptionTab other)
-
Method Summary
Modifier and Type Method Description QStyleOptionTab
clone()
QStyleOptionTab.CornerWidgets
cornerWidgets()
OR combination of CornerWidget values indicating the corner widgets of the tab barboolean
documentMode()
Whether the tabbar is in document modeQStyleOptionTab.TabFeatures
features()
QIcon
icon()
The icon for the tabQSize
iconSize()
The size for the iconsQSize
leftButtonSize()
The size for the left widget on the tabQStyleOptionTab.TabPosition
position()
The position of the tab in the tab barQSize
rightButtonSize()
The size for the right widget on the tabint
row()
Which row the tab is currently inQStyleOptionTab.SelectedPosition
selectedPosition()
The position of the selected tab in relation to this tabvoid
set(QStyleOptionTab arg__1)
void
setCornerWidgets(QStyleOptionTab.CornerWidget... cornerWidgets)
Overloaded function forsetCornerWidgets(io.qt.widgets.QStyleOptionTab.CornerWidgets)
.void
setCornerWidgets(QStyleOptionTab.CornerWidgets cornerWidgets)
OR combination of CornerWidget values indicating the corner widgets of the tab barvoid
setDocumentMode(boolean documentMode)
Whether the tabbar is in document modevoid
setFeatures(QStyleOptionTab.TabFeature... features)
Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionTab.TabFeatures)
.void
setFeatures(QStyleOptionTab.TabFeatures features)
void
setIcon(QIcon icon)
The icon for the tabvoid
setIconSize(QSize iconSize)
The size for the iconsvoid
setLeftButtonSize(QSize leftButtonSize)
The size for the left widget on the tabvoid
setPosition(QStyleOptionTab.TabPosition position)
The position of the tab in the tab barvoid
setRightButtonSize(QSize rightButtonSize)
The size for the right widget on the tabvoid
setRow(int row)
Which row the tab is currently invoid
setSelectedPosition(QStyleOptionTab.SelectedPosition selectedPosition)
The position of the selected tab in relation to this tabvoid
setShape(QTabBar.Shape shape)
The tab shape used to draw the tab; by default QTabBar::RoundedNorthvoid
setText(String text)
The text of the tabQTabBar.Shape
shape()
The tab shape used to draw the tab; by default QTabBar::RoundedNorthString
text()
The text of the tabMethods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, init, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
-
Constructor Details
-
QStyleOptionTab
public QStyleOptionTab() -
QStyleOptionTab
-
QStyleOptionTab
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setCornerWidgets
Overloaded function for
setCornerWidgets(io.qt.widgets.QStyleOptionTab.CornerWidgets)
. -
setCornerWidgets
OR combination of CornerWidget values indicating the corner widgets of the tab bar
-
cornerWidgets
OR combination of CornerWidget values indicating the corner widgets of the tab bar
-
setDocumentMode
Whether the tabbar is in document mode
-
documentMode
Whether the tabbar is in document mode
-
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionTab.TabFeatures)
. -
setFeatures
-
features
-
setIcon
The icon for the tab
-
icon
The icon for the tab
-
setIconSize
The size for the icons
-
iconSize
The size for the icons
-
setLeftButtonSize
The size for the left widget on the tab
-
leftButtonSize
The size for the left widget on the tab
-
setPosition
The position of the tab in the tab bar
-
position
The position of the tab in the tab bar
-
setRightButtonSize
The size for the right widget on the tab
-
rightButtonSize
The size for the right widget on the tab
-
setRow
Which row the tab is currently in
-
row
Which row the tab is currently in
-
setSelectedPosition
@QtUninvokable public final void setSelectedPosition(QStyleOptionTab.SelectedPosition selectedPosition)The position of the selected tab in relation to this tab
-
selectedPosition
The position of the selected tab in relation to this tab
-
setShape
The tab shape used to draw the tab; by default QTabBar::RoundedNorth
-
shape
The tab shape used to draw the tab; by default QTabBar::RoundedNorth
-
setText
The text of the tab
-
text
The text of the tab
-
clone
- Overrides:
clone
in classQStyleOption
-