- 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
-
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 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. -
setState
Overloaded function for
setState(io.qt.widgets.QStyle.State)
.
-
assign(io.qt.widgets.QStyleOption)
instead.