- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QStyleOptionButton
,QStyleOptionComplex
,QStyleOptionDockWidget
,QStyleOptionFocusRect
,QStyleOptionFrame
,QStyleOptionGraphicsItem
,QStyleOptionHeader
,QStyleOptionMenuItem
,QStyleOptionProgressBar
,QStyleOptionRubberBand
,QStyleOptionTab
,QStyleOptionTabBarBase
,QStyleOptionTabWidgetFrame
,QStyleOptionToolBar
,QStyleOptionToolBox
,QStyleOptionViewItem
public class QStyleOption extends QtObject implements Cloneable
Stores the parameters used by QStyle functions
Java wrapper for Qt class QStyleOption
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QStyleOption()
protected
QStyleOption(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOption(QStyleOption other)
-
Method Summary
Modifier and Type Method Description QStyleOption
clone()
Qt.LayoutDirection
direction()
The text layout direction that should be used when drawing text in the controlQFontMetrics
fontMetrics()
The font metrics that should be used when drawing text in the controlvoid
init(QWidget w)
void
initFrom(QWidget w)
QPalette
palette()
The palette that should be used when painting the controlQRect
rect()
The area that should be used for various calculations and paintingvoid
set(QStyleOption other)
void
setDirection(Qt.LayoutDirection direction)
The text layout direction that should be used when drawing text in the controlvoid
setFontMetrics(QFontMetrics fontMetrics)
The font metrics that should be used when drawing text in the controlvoid
setPalette(QPalette palette)
The palette that should be used when painting the controlvoid
setRect(QRect rect)
The area that should be used for various calculations and paintingvoid
setState(QStyle.State state)
The style flags that are used when drawing the controlvoid
setState(QStyle.StateFlag... state)
Overloaded function forsetState(io.qt.widgets.QStyle.State)
.void
setStyleObject(QObject styleObject)
The object being styledQStyle.State
state()
The style flags that are used when drawing the controlQObject
styleObject()
The object being styledString
toString()
-
Constructor Details
-
QStyleOption
-
QStyleOption
public QStyleOption() -
QStyleOption
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
init
-
initFrom
-
set
-
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
Overloaded function for
setState(io.qt.widgets.QStyle.State)
. -
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
-
clone
-