- 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
ModifierConstructorDescriptionQStyleOption
(QStyleOption other) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOption other) clone()
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()
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
-
initFrom
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOption)
instead. -
assign
-
setDirection
The text layout direction that should be used when drawing text in the control
-
getDirection
Kotlin property getter. In Java use
direction()
instead. -
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
-
getFontMetrics
Kotlin property getter. In Java use
fontMetrics()
instead. -
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
-
getPalette
Kotlin property getter. In Java use
palette()
instead. -
palette
The palette that should be used when painting the control
-
setRect
The area that should be used for various calculations and painting
-
getRect
Kotlin property getter. In Java use
rect()
instead. -
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
-
getState
Kotlin property getter. In Java use
state()
instead. -
state
The style flags that are used when drawing the control
-
setStyleObject
The object being styled
-
getStyleObject
Kotlin property getter. In Java use
styleObject()
instead. -
styleObject
The object being styled
-
toString
-
clone
-
assign(io.qt.widgets.QStyleOption)
instead.