- 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 comboboxvoid
setTextAlignment(Qt.Alignment textAlignment)
The alignment of the current text in the combo boxvoid
setTextAlignment(Qt.AlignmentFlag... textAlignment)
Overloaded function forsetTextAlignment(io.qt.core.Qt.Alignment)
.Qt.Alignment
textAlignment()
The alignment of the current text in the combo boxMethods 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
-
QStyleOptionComboBox
public QStyleOptionComboBox() -
QStyleOptionComboBox
-
QStyleOptionComboBox
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
set
-
setCurrentIcon
The icon for the current item of the combo box
-
currentIcon
The icon for the current item of the combo box
-
setCurrentText
The text for the current item of the combo box
-
currentText
The text 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
-
setFrame
Whether the combo box has a frame
-
frame
Whether the combo box has a frame
-
setIconSize
The icon size for the current item of the combo box
-
iconSize
The icon size for the current item of the combo box
-
setPopupRect
The popup rectangle for the combobox
-
popupRect
The popup rectangle for the combobox
-
setTextAlignment
Overloaded function for
setTextAlignment(io.qt.core.Qt.Alignment)
. -
setTextAlignment
The alignment of the current text in the combo box
-
textAlignment
The alignment of the current text in the combo box
-
clone
- Overrides:
clone
in classQStyleOptionComplex
-