QComboBox Class Reference
[QtGui module]
Inherits QWidget.
Inherited by QFontComboBox.
Types
- enum InsertPolicy { NoInsert, InsertAtTop, InsertAtCurrent, InsertAtBottom, ..., InsertAlphabetically }
- enum SizeAdjustPolicy { AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon }
Methods
- __init__ (self, QWidget parent = None)
- addItem (self, QString, QVariant userData = QVariant())
- addItem (self, QIcon, QString, QVariant userData = QVariant())
- addItems (self, QStringList)
- bool autoCompletion (self)
- Qt.CaseSensitivity autoCompletionCaseSensitivity (self)
- changeEvent (self, QEvent)
- clear (self)
- clearEditText (self)
- QCompleter completer (self)
- contextMenuEvent (self, QContextMenuEvent)
- int count (self)
- int currentIndex (self)
- QString currentText (self)
- bool duplicatesEnabled (self)
- bool event (self, QEvent)
- int findData (self, QVariant, int role = Qt.UserRole, Qt.MatchFlags flags = Qt.MatchExactly|Qt.MatchCaseSensitive)
- int findText (self, QString, Qt.MatchFlags flags = Qt.MatchExactly|Qt.MatchCaseSensitive)
- focusInEvent (self, QFocusEvent)
- focusOutEvent (self, QFocusEvent)
- bool hasFrame (self)
- hideEvent (self, QHideEvent)
- hidePopup (self)
- QSize iconSize (self)
- initStyleOption (self, QStyleOptionComboBox)
- inputMethodEvent (self, QInputMethodEvent)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery)
- insertItem (self, int, QString, QVariant userData = QVariant())
- insertItem (self, int, QIcon, QString, QVariant userData = QVariant())
- insertItems (self, int, QStringList)
- InsertPolicy insertPolicy (self)
- insertSeparator (self, int)
- bool isEditable (self)
- QVariant itemData (self, int, int role = Qt.UserRole)
- QAbstractItemDelegate itemDelegate (self)
- QIcon itemIcon (self, int)
- QString itemText (self, int)
- keyPressEvent (self, QKeyEvent)
- keyReleaseEvent (self, QKeyEvent)
- QLineEdit lineEdit (self)
- int maxCount (self)
- int maxVisibleItems (self)
- int minimumContentsLength (self)
- QSize minimumSizeHint (self)
- QAbstractItemModel model (self)
- int modelColumn (self)
- mousePressEvent (self, QMouseEvent)
- mouseReleaseEvent (self, QMouseEvent)
- paintEvent (self, QPaintEvent)
- removeItem (self, int)
- resizeEvent (self, QResizeEvent)
- QModelIndex rootModelIndex (self)
- setAutoCompletion (self, bool)
- setAutoCompletionCaseSensitivity (self, Qt.CaseSensitivity)
- setCompleter (self, QCompleter)
- setCurrentIndex (self, int)
- setDuplicatesEnabled (self, bool)
- setEditable (self, bool)
- setEditText (self, QString)
- setFrame (self, bool)
- setIconSize (self, QSize)
- setInsertPolicy (self, InsertPolicy)
- setItemData (self, int, QVariant, int role = Qt.UserRole)
- setItemDelegate (self, QAbstractItemDelegate)
- setItemIcon (self, int, QIcon)
- setItemText (self, int, QString)
- setLineEdit (self, QLineEdit)
- setMaxCount (self, int)
- setMaxVisibleItems (self, int)
- setMinimumContentsLength (self, int)
- setModel (self, QAbstractItemModel)
- setModelColumn (self, int)
- setRootModelIndex (self, QModelIndex)
- setSizeAdjustPolicy (self, SizeAdjustPolicy)
- setValidator (self, QValidator)
- setView (self, QAbstractItemView)
- showEvent (self, QShowEvent)
- showPopup (self)
- SizeAdjustPolicy sizeAdjustPolicy (self)
- QSize sizeHint (self)
- QValidator validator (self)
- QAbstractItemView view (self)
- wheelEvent (self, QWheelEvent)
Special Methods
Qt Signals
Detailed Description
Type Documentation
QComboBox.InsertPolicy
QComboBox.SizeAdjustPolicy
Method Documentation
QComboBox.__init__ (self, QWidget parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QComboBox.addItem (self, QString, QVariant userData = QVariant())
QComboBox.addItem (self, QIcon, QString, QVariant userData = QVariant())
QComboBox.addItems (self, QStringList)
bool QComboBox.autoCompletion (self)
Qt.CaseSensitivity QComboBox.autoCompletionCaseSensitivity (self)
QComboBox.changeEvent (self, QEvent)
QComboBox.clear (self)
This method is also a Qt slot with the C++ signature void clear().
QComboBox.clearEditText (self)
This method is also a Qt slot with the C++ signature void clearEditText().
QCompleter QComboBox.completer (self)
QComboBox.contextMenuEvent (self, QContextMenuEvent)
int QComboBox.count (self)
int QComboBox.currentIndex (self)
QString QComboBox.currentText (self)
bool QComboBox.duplicatesEnabled (self)
bool QComboBox.event (self, QEvent)
int QComboBox.findData (self, QVariant, int role = Qt.UserRole, Qt.MatchFlags flags = Qt.MatchExactly|Qt.MatchCaseSensitive)
int QComboBox.findText (self, QString, Qt.MatchFlags flags = Qt.MatchExactly|Qt.MatchCaseSensitive)
QComboBox.focusInEvent (self, QFocusEvent)
QComboBox.focusOutEvent (self, QFocusEvent)
bool QComboBox.hasFrame (self)
QComboBox.hideEvent (self, QHideEvent)
QComboBox.hidePopup (self)
QSize QComboBox.iconSize (self)
QComboBox.inputMethodEvent (self, QInputMethodEvent)
QVariant QComboBox.inputMethodQuery (self, Qt.InputMethodQuery)
QComboBox.insertItem (self, int, QString, QVariant userData = QVariant())
QComboBox.insertItem (self, int, QIcon, QString, QVariant userData = QVariant())
QComboBox.insertItems (self, int, QStringList)
InsertPolicy QComboBox.insertPolicy (self)
QComboBox.insertSeparator (self, int)
bool QComboBox.isEditable (self)
QVariant QComboBox.itemData (self, int, int role = Qt.UserRole)
QIcon QComboBox.itemIcon (self, int)
QString QComboBox.itemText (self, int)
QComboBox.keyPressEvent (self, QKeyEvent)
QComboBox.keyReleaseEvent (self, QKeyEvent)
QLineEdit QComboBox.lineEdit (self)
int QComboBox.maxCount (self)
int QComboBox.maxVisibleItems (self)
int QComboBox.minimumContentsLength (self)
QSize QComboBox.minimumSizeHint (self)
int QComboBox.modelColumn (self)
QComboBox.mousePressEvent (self, QMouseEvent)
QComboBox.mouseReleaseEvent (self, QMouseEvent)
QComboBox.paintEvent (self, QPaintEvent)
QComboBox.removeItem (self, int)
QComboBox.resizeEvent (self, QResizeEvent)
QModelIndex QComboBox.rootModelIndex (self)
QComboBox.setAutoCompletion (self, bool)
QComboBox.setAutoCompletionCaseSensitivity (self, Qt.CaseSensitivity)
QComboBox.setCompleter (self, QCompleter)
QComboBox.setCurrentIndex (self, int)
QComboBox.setDuplicatesEnabled (self, bool)
QComboBox.setEditable (self, bool)
QComboBox.setEditText (self, QString)
This method is also a Qt slot with the C++ signature void setEditText(const QString&).
QComboBox.setFrame (self, bool)
QComboBox.setIconSize (self, QSize)
QComboBox.setInsertPolicy (self, InsertPolicy)
QComboBox.setItemData (self, int, QVariant, int role = Qt.UserRole)
QComboBox.setItemIcon (self, int, QIcon)
QComboBox.setItemText (self, int, QString)
QComboBox.setLineEdit (self, QLineEdit)
The QLineEdit argument has it's ownership transferred to Qt.
QComboBox.setMaxCount (self, int)
QComboBox.setMaxVisibleItems (self, int)
QComboBox.setMinimumContentsLength (self, int)
QComboBox.setModelColumn (self, int)
QComboBox.setRootModelIndex (self, QModelIndex)
QComboBox.setSizeAdjustPolicy (self, SizeAdjustPolicy)
QComboBox.setValidator (self, QValidator)
The QAbstractItemView argument has it's ownership transferred to Qt.
QComboBox.showEvent (self, QShowEvent)
QComboBox.showPopup (self)
SizeAdjustPolicy QComboBox.sizeAdjustPolicy (self)
QSize QComboBox.sizeHint (self)
QValidator QComboBox.validator (self)
QComboBox.wheelEvent (self, QWheelEvent)
QComboBox.__len__ (self)
Qt Signal Documentation
void activated (int)
This is the default overload of this signal.
void activated (const QString&)
void currentIndexChanged (int)
This is the default overload of this signal.
void currentIndexChanged (const QString&)
void editTextChanged (const QString&)
This is the default overload of this signal.
void highlighted (int)
This is the default overload of this signal.
void highlighted (const QString&)