- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Used to describe the parameters for drawing a tab bar
Java wrapper for Qt class QStyleOptionTab
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQStyleOptionTab::CornerWidget
static final class
QFlags
type for enumQStyleOptionTab.CornerWidget
static enum
Java wrapper for Qt enumQStyleOptionTab::SelectedPosition
static enum
Java wrapper for Qt enumQStyleOptionTab::TabFeature
static final class
QFlags
type for enumQStyleOptionTab.TabFeature
static enum
Java wrapper for Qt enumQStyleOptionTab::TabPosition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOptionTab arg__1) SeeQStyleOptionTab::
operator=(QStyleOptionTab) clone()
Creates and returns a copy of this object.OR combination of CornerWidget values indicating the corner widgets of the tab barfinal boolean
Whether the tabbar is in document modefeatures()
SeeQStyleOptionTab::
features final QIcon
icon()
The icon for the tabfinal QSize
iconSize()
The size for the iconsfinal QSize
The size for the left widget on the tabposition()
The position of the tab in the tab barfinal QSize
The size for the right widget on the tabfinal int
row()
Which row the tab is currently inThe position of the selected tab in relation to this tabfinal void
set
(QStyleOptionTab arg__1) Deprecated.final void
setCornerWidgets
(QStyleOptionTab.CornerWidget ... cornerWidgets) Overloaded function forsetCornerWidgets(io.qt.widgets.QStyleOptionTab.CornerWidgets)
.final void
setCornerWidgets
(QStyleOptionTab.CornerWidgets cornerWidgets) OR combination of CornerWidget values indicating the corner widgets of the tab barfinal void
setDocumentMode
(boolean documentMode) Whether the tabbar is in document modefinal void
setFeatures
(QStyleOptionTab.TabFeature ... features) Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionTab.TabFeatures)
.final void
setFeatures
(QStyleOptionTab.TabFeatures features) SeeQStyleOptionTab::
features final void
The icon for the tabfinal void
Overloaded function forsetIcon(io.qt.gui.QIcon)
.final void
setIconSize
(QSize iconSize) The size for the iconsfinal void
setLeftButtonSize
(QSize leftButtonSize) The size for the left widget on the tabfinal void
setPosition
(QStyleOptionTab.TabPosition position) The position of the tab in the tab barfinal void
setRightButtonSize
(QSize rightButtonSize) The size for the right widget on the tabfinal void
setRow
(int row) Which row the tab is currently infinal void
setSelectedPosition
(QStyleOptionTab.SelectedPosition selectedPosition) The position of the selected tab in relation to this tabfinal void
setShape
(QTabBar.Shape shape) The tab shape used to draw the tab; by default QTabBar::RoundedNorthfinal void
setTabIndex
(int tabIndex) The index for the tab being representedfinal void
The text of the tabfinal QTabBar.Shape
shape()
The tab shape used to draw the tab; by default QTabBar::RoundedNorthfinal int
tabIndex()
The index for the tab being representedfinal String
text()
The text of the tabMethods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOptionTab
public QStyleOptionTab() -
QStyleOptionTab
- Parameters:
other
-
-
-
Method Details
-
assign
See
QStyleOptionTab::
operator=(QStyleOptionTab) - Parameters:
arg__1
-
-
setCornerWidgets
OR combination of CornerWidget values indicating the corner widgets of the tab bar
- Parameters:
cornerWidgets
-
-
cornerWidgets
OR combination of CornerWidget values indicating the corner widgets of the tab bar
- Returns:
-
setDocumentMode
Whether the tabbar is in document mode
- Parameters:
documentMode
-
-
documentMode
Whether the tabbar is in document mode
- Returns:
-
setFeatures
See
QStyleOptionTab::
features - Parameters:
features
-
-
features
See
QStyleOptionTab::
features - Returns:
-
setIcon
The icon for the tab
- Parameters:
icon
-
-
icon
The icon for the tab
- Returns:
-
setIconSize
The size for the icons
- Parameters:
iconSize
-
-
iconSize
The size for the icons
- Returns:
-
setLeftButtonSize
The size for the left widget on the tab
- Parameters:
leftButtonSize
-
-
leftButtonSize
The size for the left widget on the tab
- Returns:
-
setPosition
The position of the tab in the tab bar
- Parameters:
position
-
-
position
The position of the tab in the tab bar
- Returns:
-
setRightButtonSize
The size for the right widget on the tab
- Parameters:
rightButtonSize
-
-
rightButtonSize
The size for the right widget on the tab
- Returns:
-
setRow
Which row the tab is currently in
- Parameters:
row
-
-
row
Which row the tab is currently in
- Returns:
-
setSelectedPosition
@QtUninvokable public final void setSelectedPosition(QStyleOptionTab.SelectedPosition selectedPosition) The position of the selected tab in relation to this tab
- Parameters:
selectedPosition
-
-
selectedPosition
The position of the selected tab in relation to this tab
- Returns:
-
setShape
The tab shape used to draw the tab; by default QTabBar::RoundedNorth
- Parameters:
shape
-
-
shape
The tab shape used to draw the tab; by default QTabBar::RoundedNorth
- Returns:
-
setTabIndex
The index for the tab being represented
- Parameters:
tabIndex
-
-
tabIndex
The index for the tab being represented
- Returns:
-
setText
The text of the tab
- Parameters:
text
-
-
text
The text of the tab
- Returns:
-
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQStyleOption
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionTab)
instead. -
setCornerWidgets
Overloaded function for
setCornerWidgets(io.qt.widgets.QStyleOptionTab.CornerWidgets)
. -
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionTab.TabFeatures)
. -
setIcon
Overloaded function for
setIcon(io.qt.gui.QIcon)
.
-
assign(io.qt.widgets.QStyleOptionTab)
instead.