- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QStyleOptionComboBox extends QStyleOptionComplex implements Cloneable
Used to describe the parameter for drawing a combobox
Java wrapper for Qt class QStyleOptionComboBox
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QStyleOptionComboBox()
protected
QStyleOptionComboBox(QtObject.QPrivateConstructor p)
Constructor for internal use only.QStyleOptionComboBox(QStyleOptionComboBox other)
-
Method Summary
Modifier and Type Method Description QStyleOptionComboBox
clone()
QIcon
currentIcon()
The icon for the current item of the combo boxString
currentText()
The text for the current item of the combo boxboolean
editable()
Whether or not the combobox is editable or notboolean
frame()
Whether the combo box has a frameQSize
iconSize()
The icon size for the current item of the combo boxQRect
popupRect()
The popup rectangle for the comboboxvoid
set(QStyleOptionComboBox arg__1)
void
setCurrentIcon(QIcon currentIcon)
The icon for the current item of the combo boxvoid
setCurrentText(String currentText)
The text for the current item of the combo boxvoid
setEditable(boolean editable)
Whether or not the combobox is editable or notvoid
setFrame(boolean frame)
Whether the combo box has a framevoid
setIconSize(QSize iconSize)
The icon size for the current item of the combo boxvoid
setPopupRect(QRect popupRect)
The popup rectangle for the comboboxMethods inherited from class io.qt.widgets.QStyleOptionComplex
activeSubControls, set, setActiveSubControls, setSubControls, subControls
Methods 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
-
QStyleOptionComboBox
public QStyleOptionComboBox() -
QStyleOptionComboBox
-
QStyleOptionComboBox
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setPopupRect
The popup rectangle for the combobox
See QStyleOptionComboBox::setPopupRect(const QRect & popupRect)
-
popupRect
The popup rectangle for the combobox
-
setCurrentText
The text for the current item of the combo box
See QStyleOptionComboBox::setCurrentText(const QString & currentText)
-
currentText
The text for the current item of the combo box
-
setIconSize
The icon size for the current item of the combo box
See QStyleOptionComboBox::setIconSize(const QSize & iconSize)
-
iconSize
The icon size for the current item of the combo box
-
setEditable
Whether or not the combobox is editable or not
-
editable
Whether or not the combobox is editable or not
-
setCurrentIcon
The icon for the current item of the combo box
See QStyleOptionComboBox::setCurrentIcon(const QIcon & currentIcon)
-
currentIcon
The icon for the current item of the combo box
-
setFrame
Whether the combo box has a frame
-
frame
Whether the combo box has a frame
-
clone
- Overrides:
clone
in classQStyleOptionComplex
-