- All Implemented Interfaces:
QtObjectInterface,Cloneable
Used to describe the parameter for drawing a combobox
Java wrapper for Qt class QStyleOptionComboBox
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QStyleOptionComboBox arg__1) SeeQStyleOptionComboBox::operator=(QStyleOptionComboBox) clone()Creates and returns a copy of this object.final QIconThe icon for the current item of the combo boxfinal StringThe text for the current item of the combo boxfinal booleaneditable()Whether or not the combobox is editable or notfinal booleanframe()Whether the combo box has a framefinal QSizeiconSize()The icon size for the current item of the combo boxfinal QRectThe popup rectangle for the comboboxfinal voidset(QStyleOptionComboBox arg__1) Deprecated.final voidsetCurrentIcon(QIcon currentIcon) The icon for the current item of the combo boxfinal voidsetCurrentIcon(QPixmap currentIcon) Overloaded function forsetCurrentIcon(io.qt.gui.QIcon).final voidsetCurrentText(String currentText) The text for the current item of the combo boxfinal voidsetEditable(boolean editable) Whether or not the combobox is editable or notfinal voidsetFrame(boolean frame) Whether the combo box has a framefinal voidsetIconSize(QSize iconSize) The icon size for the current item of the combo boxfinal voidsetPopupRect(QRect popupRect) The popup rectangle for the comboboxMethods inherited from class io.qt.widgets.QStyleOptionComplex
activeSubControls, assign, set, setActiveSubControls, setActiveSubControls, setSubControls, setSubControls, subControlsMethods inherited from class io.qt.widgets.QStyleOption
assign, direction, fontMetrics, init, initFrom, palette, rect, set, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setStyleObject, state, styleObject, toStringMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QStyleOptionComboBox
public QStyleOptionComboBox() -
QStyleOptionComboBox
- Parameters:
other-
-
-
Method Details
-
assign
See
QStyleOptionComboBox::operator=(QStyleOptionComboBox) - Parameters:
arg__1-
-
setCurrentIcon
The icon for the current item of the combo box
- Parameters:
currentIcon-
-
currentIcon
The icon for the current item of the combo box
- Returns:
-
setCurrentText
The text for the current item of the combo box
- Parameters:
currentText-
-
currentText
The text for the current item of the combo box
- Returns:
-
setEditable
Whether or not the combobox is editable or not
- Parameters:
editable-
-
editable
Whether or not the combobox is editable or not
- Returns:
-
setFrame
Whether the combo box has a frame
- Parameters:
frame-
-
frame
Whether the combo box has a frame
- Returns:
-
setIconSize
The icon size for the current item of the combo box
- Parameters:
iconSize-
-
iconSize
The icon size for the current item of the combo box
- Returns:
-
setPopupRect
The popup rectangle for the combobox
- Parameters:
popupRect-
-
popupRect
The popup rectangle for the combobox
- Returns:
-
clone
Creates and returns a copy of this object.
See
QStyleOptionComboBox::QStyleOptionComboBox(QStyleOptionComboBox) - Overrides:
clonein classQStyleOptionComplex
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionComboBox)instead. -
setCurrentIcon
Overloaded function for
setCurrentIcon(io.qt.gui.QIcon).
-
assign(io.qt.widgets.QStyleOptionComboBox)instead.