- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QStyleOption other) clone()Creates and returns a copy of this object.final Qt.LayoutDirectionThe text layout direction that should be used when drawing text in the controlfinal QFontMetricsThe font metrics that should be used when drawing text in the controlfinal voidfinal QPalettepalette()The palette that should be used when painting the controlfinal QRectrect()The area that should be used for various calculations and paintingfinal voidset(QStyleOption other) Deprecated.final voidsetDirection(Qt.LayoutDirection direction) The text layout direction that should be used when drawing text in the controlfinal voidsetFontMetrics(QFontMetrics fontMetrics) The font metrics that should be used when drawing text in the controlfinal voidsetPalette(QPalette palette) The palette that should be used when painting the controlfinal voidThe area that should be used for various calculations and paintingfinal voidsetState(QStyle.State state) The style flags that are used when drawing the controlfinal voidsetState(QStyle.StateFlag ... state) Overloaded function forsetState(io.qt.widgets.QStyle.State).final voidsetStyleObject(QObject styleObject) The object being styledfinal QStyle.Statestate()The style flags that are used when drawing the controlfinal QObjectThe 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.