java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.widgets.QStyleOption
io.qt.widgets.QStyleOptionButton
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionButton extends QStyleOption implements Cloneable
Used to describe the parameters for drawing buttons
Java wrapper for Qt class QStyleOptionButton
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QStyleOptionButton.ButtonFeature
Java wrapper for Qt enum QStyleOptionButton::ButtonFeaturestatic class
QStyleOptionButton.ButtonFeatures
QFlags type for enumQStyleOptionButton.ButtonFeature
-
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionButton()
protected
QStyleOptionButton(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionButton(QStyleOptionButton other)
-
Method Summary
Modifier and Type Method Description QStyleOptionButton
clone()
QStyleOptionButton.ButtonFeatures
features()
Bitwise OR of the features that describe this buttonQIcon
icon()
The icon of the buttonQSize
iconSize()
The size of the icon for the buttonvoid
set(QStyleOptionButton arg__1)
void
setFeatures(QStyleOptionButton.ButtonFeature... features)
Overloaded function forsetFeatures(io.qt.widgets.QStyleOptionButton.ButtonFeatures)
.void
setFeatures(QStyleOptionButton.ButtonFeatures features)
Bitwise OR of the features that describe this buttonvoid
setIcon(QIcon icon)
The icon of the buttonvoid
setIconSize(QSize iconSize)
The size of the icon for the buttonvoid
setText(String text)
The text of the buttonString
text()
The text of the buttonMethods inherited from class io.qt.widgets.QStyleOption
direction, fontMetrics, init, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toString
-
Constructor Details
-
QStyleOptionButton
public QStyleOptionButton() -
QStyleOptionButton
-
QStyleOptionButton
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setIconSize
The size of the icon for the button
-
iconSize
The size of the icon for the button
-
setText
The text of the button
-
text
The text of the button
-
setFeatures
Overloaded function for
setFeatures(io.qt.widgets.QStyleOptionButton.ButtonFeatures)
. -
setFeatures
Bitwise OR of the features that describe this button
See QStyleOptionButton::setFeatures(QFlags<QStyleOptionButton::ButtonFeature> features)
-
features
Bitwise OR of the features that describe this button
-
setIcon
The icon of the button
-
icon
The icon of the button
-
clone
- Overrides:
clone
in classQStyleOption
-