- 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
- Parameters:
other
-
-
QStyleOption
public QStyleOption()
-
-
Method Details
-
initFrom
- Parameters:
w
-
-
assign
- Parameters:
other
-
-
setDirection
The text layout direction that should be used when drawing text in the control
- Parameters:
direction
-
-
direction
The text layout direction that should be used when drawing text in the control
- Returns:
-
setFontMetrics
The font metrics that should be used when drawing text in the control
- Parameters:
fontMetrics
-
-
fontMetrics
The font metrics that should be used when drawing text in the control
- Returns:
-
setPalette
The palette that should be used when painting the control
- Parameters:
palette
-
-
palette
The palette that should be used when painting the control
- Returns:
-
setRect
The area that should be used for various calculations and painting
- Parameters:
rect
-
-
rect
The area that should be used for various calculations and painting
- Returns:
-
setState
The style flags that are used when drawing the control
- Parameters:
state
-
-
state
The style flags that are used when drawing the control
- Returns:
-
setStyleObject
The object being styled
- Parameters:
styleObject
-
-
styleObject
The object being styled
- Returns:
-
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.