- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionToolButton extends QStyleOptionComplex implements Cloneable
Used to describe the parameters for drawing a tool button
Java wrapper for Qt class QStyleOptionToolButton
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStyleOptionToolButton.ToolButtonFeature
Java wrapper for Qt enum QStyleOptionToolButton::ToolButtonFeaturestatic class
QStyleOptionToolButton.ToolButtonFeatures
QFlags type for enumQStyleOptionToolButton.ToolButtonFeature
-
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionToolButton()
protected
QStyleOptionToolButton(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionToolButton(QStyleOptionToolButton other)
-
Method Summary
Modifier and Type Method Description Qt.ArrowType
arrowType()
The direction of the arrow for the tool buttonQStyleOptionToolButton
clone()
QStyleOptionToolButton.ToolButtonFeatures
features()
OR combination of the tool button's featuresQFont
font()
The font that is used for the textQIcon
icon()
The icon for the tool buttonQSize
iconSize()
The size of the icon for the tool buttonQPoint
pos()
The position of the tool buttonvoid
set(QStyleOptionToolButton arg__1)
void
setArrowType(Qt.ArrowType arrowType)
The direction of the arrow for the tool buttonvoid
setFeatures(QStyleOptionToolButton.ToolButtonFeature... features)
Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionToolButton.ToolButtonFeatures)
.void
setFeatures(QStyleOptionToolButton.ToolButtonFeatures features)
OR combination of the tool button's featuresvoid
setFont(QFont font)
The font that is used for the textvoid
setIcon(QIcon icon)
The icon for the tool buttonvoid
setIconSize(QSize iconSize)
The size of the icon for the tool buttonvoid
setPos(QPoint pos)
The position of the tool buttonvoid
setText(String text)
The text of the tool buttonvoid
setToolButtonStyle(Qt.ToolButtonStyle toolButtonStyle)
Qt::ToolButtonStyle value describing the appearance of the tool buttonString
text()
The text of the tool buttonQt.ToolButtonStyle
toolButtonStyle()
Qt::ToolButtonStyle value describing the appearance of the tool buttonMethods inherited from class io.qt.widgets.QStyleOptionComplex
activeSubControls, set, setActiveSubControls, setSubControls, subControls
Methods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
-
Constructor Details
-
QStyleOptionToolButton
public QStyleOptionToolButton() -
QStyleOptionToolButton
-
QStyleOptionToolButton
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setArrowType
The direction of the arrow for the tool button
-
arrowType
The direction of the arrow for the tool button
-
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionToolButton.ToolButtonFeatures)
. -
setFeatures
OR combination of the tool button's features
-
features
OR combination of the tool button's features
-
setFont
The font that is used for the text
-
font
The font that is used for the text
-
setIcon
The icon for the tool button
-
icon
The icon for the tool button
-
setIconSize
The size of the icon for the tool button
-
iconSize
The size of the icon for the tool button
-
setPos
The position of the tool button
-
pos
The position of the tool button
-
setText
The text of the tool button
-
text
The text of the tool button
-
setToolButtonStyle
Qt::ToolButtonStyle value describing the appearance of the tool button
-
toolButtonStyle
Qt::ToolButtonStyle value describing the appearance of the tool button
-
clone
- Overrides:
clone
in classQStyleOptionComplex
-