QComboBox¶

PyQt5.QtWidgets.QComboBox

Inherits from QWidget.

Inherited by QFontComboBox.

Description¶

TODO

Enums¶

InsertPolicy

TODO

Member

Value

Description

InsertAfterCurrent

TODO

TODO

InsertAlphabetically

TODO

TODO

InsertAtBottom

TODO

TODO

InsertAtCurrent

TODO

TODO

InsertAtTop

TODO

TODO

InsertBeforeCurrent

TODO

TODO

NoInsert

TODO

TODO


SizeAdjustPolicy

TODO

Member

Value

Description

AdjustToContents

TODO

TODO

AdjustToContentsOnFirstShow

TODO

TODO

AdjustToMinimumContentsLength

TODO

TODO

AdjustToMinimumContentsLengthWithIcon

TODO

TODO

Methods¶

__init__(parent: QWidget = None)

TODO


addItem(str, userData: Any = None)

TODO


addItem(QIcon, str, userData: Any = None)

TODO


addItems(Iterable[str])

TODO


changeEvent(QEvent)

TODO


clear()

TODO


clearEditText()

TODO


completer() → QCompleter

TODO


contextMenuEvent(QContextMenuEvent)

TODO


count() → int

TODO


currentData(role: int = Qt.ItemDataRole.UserRole) → Any

TODO


currentIndex() → int

TODO


currentText() → str

TODO


duplicatesEnabled() → bool

TODO


event(QEvent) → bool

TODO


findData(Any, role: int = UserRole, flags: Union[MatchFlags, MatchFlag] = Qt.MatchExactly|Qt.MatchCaseSensitive) → int

TODO


findText(str, flags: Union[MatchFlags, MatchFlag] = Qt.MatchExactly|Qt.MatchCaseSensitive) → int

TODO


focusInEvent(QFocusEvent)

TODO


focusOutEvent(QFocusEvent)

TODO


hasFrame() → bool

TODO


hideEvent(QHideEvent)

TODO


hidePopup()

TODO


iconSize() → QSize

TODO


initStyleOption(QStyleOptionComboBox)

TODO


inputMethodEvent(QInputMethodEvent)

TODO


inputMethodQuery(InputMethodQuery) → Any

TODO


inputMethodQuery(InputMethodQuery, Any) → Any

TODO


insertItem(int, str, userData: Any = None)

TODO


insertItem(int, QIcon, str, userData: Any = None)

TODO


insertItems(int, Iterable[str])

TODO


insertPolicy() → InsertPolicy

TODO


insertSeparator(int)

TODO


isEditable() → bool

TODO


itemData(int, role: int = UserRole) → Any

TODO


itemDelegate() → QAbstractItemDelegate

TODO


itemIcon(int) → QIcon

TODO


itemText(int) → str

TODO


keyPressEvent(QKeyEvent)

TODO


keyReleaseEvent(QKeyEvent)

TODO


__len__() → int

TODO


lineEdit() → QLineEdit

TODO


maxCount() → int

TODO


maxVisibleItems() → int

TODO


minimumContentsLength() → int

TODO


minimumSizeHint() → QSize

TODO


model() → QAbstractItemModel

TODO


modelColumn() → int

TODO


mousePressEvent(QMouseEvent)

TODO


mouseReleaseEvent(QMouseEvent)

TODO


paintEvent(QPaintEvent)

TODO


removeItem(int)

TODO


resizeEvent(QResizeEvent)

TODO


rootModelIndex() → QModelIndex

TODO


setCompleter(QCompleter)

TODO


setCurrentIndex(int)

TODO


setCurrentText(str)

TODO


setDuplicatesEnabled(bool)

TODO


setEditable(bool)

TODO


setEditText(str)

TODO


setFrame(bool)

TODO


setIconSize(QSize)

TODO


setInsertPolicy(InsertPolicy)

TODO


setItemData(int, Any, role: int = Qt.ItemDataRole.UserRole)

TODO


setItemDelegate(QAbstractItemDelegate)

TODO


setItemIcon(int, QIcon)

TODO


setItemText(int, str)

TODO


setLineEdit(QLineEdit)

TODO


setMaxCount(int)

TODO


setMaxVisibleItems(int)

TODO


setMinimumContentsLength(int)

TODO


setModel(QAbstractItemModel)

TODO


setModelColumn(int)

TODO


setRootModelIndex(QModelIndex)

TODO


setSizeAdjustPolicy(SizeAdjustPolicy)

TODO


setValidator(QValidator)

TODO


setView(QAbstractItemView)

TODO


showEvent(QShowEvent)

TODO


showPopup()

TODO


sizeAdjustPolicy() → SizeAdjustPolicy

TODO


sizeHint() → QSize

TODO


validator() → QValidator

TODO


view() → QAbstractItemView

TODO


wheelEvent(QWheelEvent)

TODO

Signals¶

activated(int)

TODO


activated(str)

TODO


currentIndexChanged(int)

TODO


currentIndexChanged(str)

TODO


currentTextChanged(str)

TODO


editTextChanged(str)

TODO


highlighted(int)

TODO


highlighted(str)

TODO


textActivated(str)

TODO


textHighlighted(str)

TODO