- 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 class QStyleOption
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOption other) clone()
Creates and returns a copy of this object.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 Qt.LayoutDirection
Kotlin property getter.final QFontMetrics
Kotlin property getter.final QPalette
Kotlin property getter.final QRect
getRect()
Kotlin property getter.final QStyle.State
getState()
Kotlin property getter.final QObject
Kotlin property getter.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) Deprecated.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()
Seeoperator<<(QDebug,
QStyleOption) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOption
-
QStyleOption
public QStyleOption()
-
-
Method Details
-
initFrom
-
assign
-
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
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
See
operator<<(QDebug,
QStyleOption) -
clone
Creates and returns a copy of this object.
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOption)
instead. -
getDirection
Kotlin property getter. In Java use
direction()
instead. -
getFontMetrics
Kotlin property getter. In Java use
fontMetrics()
instead. -
getPalette
Kotlin property getter. In Java use
palette()
instead. -
getRect
Kotlin property getter. In Java use
rect()
instead. -
setState
Overloaded function for
setState(io.qt.widgets.QStyle.State)
. -
getState
Kotlin property getter. In Java use
state()
instead. -
getStyleObject
Kotlin property getter. In Java use
styleObject()
instead.
-
assign(io.qt.widgets.QStyleOption)
instead.