- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Used to describe the parameters for drawing a tool button
Java wrapper for Qt class QStyleOptionToolButton
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQStyleOptionToolButton::ToolButtonFeature
static final class
QFlags
type for enumQStyleOptionToolButton.ToolButtonFeature
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.ArrowType
The direction of the arrow for the tool buttonfinal void
assign
(QStyleOptionToolButton arg__1) SeeQStyleOptionToolButton::
operator=(QStyleOptionToolButton) clone()
Creates and returns a copy of this object.features()
OR combination of the tool button's featuresfinal QFont
font()
The font that is used for the textfinal QIcon
icon()
The icon for the tool buttonfinal QSize
iconSize()
The size of the icon for the tool buttonfinal QPoint
pos()
The position of the tool buttonfinal void
set
(QStyleOptionToolButton arg__1) Deprecated.final void
setArrowType
(Qt.ArrowType arrowType) The direction of the arrow for the tool buttonfinal void
setFeatures
(QStyleOptionToolButton.ToolButtonFeature ... features) Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionToolButton.ToolButtonFeatures)
.final void
OR combination of the tool button's featuresfinal void
The font that is used for the textfinal void
Overloaded function forsetFont(io.qt.gui.QFont)
.final void
The icon for the tool buttonfinal void
Overloaded function forsetIcon(io.qt.gui.QIcon)
.final void
setIconSize
(QSize iconSize) The size of the icon for the tool buttonfinal void
The position of the tool buttonfinal void
The text of the tool buttonfinal void
setToolButtonStyle
(Qt.ToolButtonStyle toolButtonStyle) Qt::ToolButtonStyle value describing the appearance of the tool buttonfinal String
text()
The text of the tool buttonfinal Qt.ToolButtonStyle
Qt::ToolButtonStyle value describing the appearance of the tool buttonMethods inherited from class io.qt.widgets.QStyleOptionComplex
activeSubControls, assign, set, setActiveSubControls, setActiveSubControls, setSubControls, setSubControls, subControls
Methods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOptionToolButton
public QStyleOptionToolButton() -
QStyleOptionToolButton
- Parameters:
other
-
-
-
Method Details
-
assign
See
QStyleOptionToolButton::
operator=(QStyleOptionToolButton) - Parameters:
arg__1
-
-
setArrowType
The direction of the arrow for the tool button
- Parameters:
arrowType
-
-
arrowType
The direction of the arrow for the tool button
- Returns:
-
setFeatures
OR combination of the tool button's features
- Parameters:
features
-
-
features
OR combination of the tool button's features
- Returns:
-
setFont
The font that is used for the text
- Parameters:
font
-
-
font
The font that is used for the text
- Returns:
-
setIcon
The icon for the tool button
- Parameters:
icon
-
-
icon
The icon for the tool button
- Returns:
-
setIconSize
The size of the icon for the tool button
- Parameters:
iconSize
-
-
iconSize
The size of the icon for the tool button
- Returns:
-
setPos
The position of the tool button
- Parameters:
pos
-
-
pos
The position of the tool button
- Returns:
-
setText
The text of the tool button
- Parameters:
text
-
-
text
The text of the tool button
- Returns:
-
setToolButtonStyle
Qt::ToolButtonStyle value describing the appearance of the tool button
- Parameters:
toolButtonStyle
-
-
toolButtonStyle
Qt::ToolButtonStyle value describing the appearance of the tool button
- Returns:
-
clone
Creates and returns a copy of this object.
See
QStyleOptionToolButton::
QStyleOptionToolButton(QStyleOptionToolButton) - Overrides:
clone
in classQStyleOptionComplex
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionToolButton)
instead. -
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionToolButton.ToolButtonFeatures)
. -
setFont
Overloaded function for
setFont(io.qt.gui.QFont)
. -
setIcon
Overloaded function for
setIcon(io.qt.gui.QIcon)
.
-
assign(io.qt.widgets.QStyleOptionToolButton)
instead.