- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Used to describe the parameter for drawing a combobox
Java wrapper for Qt class QStyleOptionComboBox
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QStyleOptionComboBox arg__1) SeeQStyleOptionComboBox::
operator=(QStyleOptionComboBox) clone()
Creates and returns a copy of this object.final QIcon
The icon for the current item of the combo boxfinal String
The text for the current item of the combo boxfinal boolean
editable()
Whether or not the combobox is editable or notfinal boolean
frame()
Whether the combo box has a framefinal QSize
iconSize()
The icon size for the current item of the combo boxfinal QRect
The popup rectangle for the comboboxfinal void
set
(QStyleOptionComboBox arg__1) Deprecated.final void
setCurrentIcon
(QIcon currentIcon) The icon for the current item of the combo boxfinal void
setCurrentIcon
(QPixmap currentIcon) Overloaded function forsetCurrentIcon(io.qt.gui.QIcon)
.final void
setCurrentText
(String currentText) The text for the current item of the combo boxfinal void
setEditable
(boolean editable) Whether or not the combobox is editable or notfinal void
setFrame
(boolean frame) Whether the combo box has a framefinal void
setIconSize
(QSize iconSize) The icon size for the current item of the combo boxfinal void
setPopupRect
(QRect popupRect) The popup rectangle for the comboboxfinal void
setTextAlignment
(Qt.Alignment textAlignment) The alignment of the current text in the combo boxfinal void
setTextAlignment
(Qt.AlignmentFlag ... textAlignment) Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment)
.final Qt.Alignment
The alignment of the current text in the combo boxMethods 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
-
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:
-
setTextAlignment
The alignment of the current text in the combo box
- Parameters:
textAlignment
-
-
textAlignment
The alignment of the current text in the combo box
- Returns:
-
clone
Creates and returns a copy of this object.
See
QStyleOptionComboBox::
QStyleOptionComboBox(QStyleOptionComboBox) - Overrides:
clone
in classQStyleOptionComplex
-
set
Deprecated.Useassign(io.qt.widgets.QStyleOptionComboBox)
instead. -
setCurrentIcon
Overloaded function for
setCurrentIcon(io.qt.gui.QIcon)
. -
setTextAlignment
Overloaded function for
setTextAlignment(io.qt.core.Qt.Alignment)
.
-
assign(io.qt.widgets.QStyleOptionComboBox)
instead.