Home · All Classes · Modules

QComboBox Class Reference
[QtGui module]

Inherits QWidget.

Inherited by QFontComboBox.

Types

Methods

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.initStyleOption (self, QStyleOptionComboBox)

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)

QAbstractItemDelegate QComboBox.itemDelegate (self)

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)

QAbstractItemModel QComboBox.model (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.setItemDelegate (self, QAbstractItemDelegate)

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.setModel (self, QAbstractItemModel)

QComboBox.setModelColumn (self, int)

QComboBox.setRootModelIndex (self, QModelIndex)

QComboBox.setSizeAdjustPolicy (self, SizeAdjustPolicy)

QComboBox.setValidator (self, QValidator)

QComboBox.setView (self, QAbstractItemView)

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)

QAbstractItemView QComboBox.view (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&)


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0