- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QStyleOptionButton
,QStyleOptionComplex
,QStyleOptionDockWidget
,QStyleOptionFocusRect
,QStyleOptionFrame
,QStyleOptionGraphicsItem
,QStyleOptionHeader
,QStyleOptionMenuItem
,QStyleOptionProgressBar
,QStyleOptionRubberBand
,QStyleOptionTab
,QStyleOptionTabBarBase
,QStyleOptionTabWidgetFrame
,QStyleOptionToolBar
,QStyleOptionToolBox
,QStyleOptionViewItem
Stores the parameters used by QStyle functions
Java wrapper for Qt's class QStyleOption
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only.QStyleOption
(QStyleOption other) -
Method Summary
Modifier and TypeMethodDescriptionclone()
final Qt.LayoutDirection
The text layout direction that should be used when drawing text in the controlfinal QFontMetrics
The font metrics that should be used when drawing text in the controlfinal void
final void
final QPalette
palette()
The palette that should be used when painting the controlfinal QRect
rect()
The area that should be used for various calculations and paintingfinal void
set
(QStyleOption other) final void
setDirection
(Qt.LayoutDirection direction) The text layout direction that should be used when drawing text in the controlfinal void
setFontMetrics
(QFontMetrics fontMetrics) The font metrics that should be used when drawing text in the controlfinal void
setPalette
(QPalette palette) The palette that should be used when painting the controlfinal void
The area that should be used for various calculations and paintingfinal void
setState
(QStyle.State state) The style flags that are used when drawing the controlfinal void
setState
(QStyle.StateFlag... state) Overloaded function forsetState(io.qt.widgets.QStyle.State)
.final void
setStyleObject
(QObject styleObject) The object being styledfinal QStyle.State
state()
The style flags that are used when drawing the controlfinal QObject
The object being styledtoString()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOption
-
QStyleOption
public QStyleOption() -
QStyleOption
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
init
-
initFrom
-
set
-
setDirection
The text layout direction that should be used when drawing text in the control
-
direction
The text layout direction that should be used when drawing text in the control
-
setFontMetrics
The font metrics that should be used when drawing text in the control
-
fontMetrics
The font metrics that should be used when drawing text in the control
-
setPalette
The palette that should be used when painting the control
-
palette
The palette that should be used when painting the control
-
setRect
The area that should be used for various calculations and painting
-
rect
The area that should be used for various calculations and painting
-
setState
Overloaded function for
setState(io.qt.widgets.QStyle.State)
. -
setState
The style flags that are used when drawing the control
-
state
The style flags that are used when drawing the control
-
setStyleObject
The object being styled
-
styleObject
The object being styled
-
toString
-
clone
-