QCompleter Class Reference
[QtGui module]
Inherits QObject.
Types
- enum CompletionMode { PopupCompletion, UnfilteredPopupCompletion, InlineCompletion }
- enum ModelSorting { UnsortedModel, CaseSensitivelySortedModel, CaseInsensitivelySortedModel }
Methods
- __init__ (self, QObject parent = None)
- __init__ (self, QAbstractItemModel, QObject parent = None)
- __init__ (self, QStringList, QObject parent = None)
- Qt.CaseSensitivity caseSensitivity (self)
- complete (self, QRect rect = QRect())
- int completionColumn (self)
- int completionCount (self)
- CompletionMode completionMode (self)
- QAbstractItemModel completionModel (self)
- QString completionPrefix (self)
- int completionRole (self)
- QString currentCompletion (self)
- QModelIndex currentIndex (self)
- int currentRow (self)
- bool event (self, QEvent)
- bool eventFilter (self, QObject, QEvent)
- int maxVisibleItems (self)
- QAbstractItemModel model (self)
- ModelSorting modelSorting (self)
- QString pathFromIndex (self, QModelIndex)
- QAbstractItemView popup (self)
- setCaseSensitivity (self, Qt.CaseSensitivity)
- setCompletionColumn (self, int)
- setCompletionMode (self, CompletionMode)
- setCompletionPrefix (self, QString)
- setCompletionRole (self, int)
- bool setCurrentRow (self, int)
- setMaxVisibleItems (self, int)
- setModel (self, QAbstractItemModel)
- setModelSorting (self, ModelSorting)
- setPopup (self, QAbstractItemView)
- setWidget (self, QWidget)
- setWrapAround (self, bool)
- QStringList splitPath (self, QString)
- QWidget widget (self)
- bool wrapAround (self)
Qt Signals
Detailed Description
Type Documentation
QCompleter.CompletionMode
QCompleter.ModelSorting
Method Documentation
QCompleter.__init__ (self, QObject parent = None)
The parent argument
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QCompleter.__init__ (self, QStringList, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QCompleter.complete (self, QRect rect = QRect())
This method is also a Qt slot with the C++ signature void complete(const QRect& = QRect()).
int QCompleter.completionColumn (self)
int QCompleter.completionCount (self)
CompletionMode QCompleter.completionMode (self)
QString QCompleter.completionPrefix (self)
int QCompleter.completionRole (self)
QString QCompleter.currentCompletion (self)
QModelIndex QCompleter.currentIndex (self)
int QCompleter.currentRow (self)
bool QCompleter.event (self, QEvent)
bool QCompleter.eventFilter (self, QObject, QEvent)
int QCompleter.maxVisibleItems (self)
ModelSorting QCompleter.modelSorting (self)
QString QCompleter.pathFromIndex (self, QModelIndex)
QCompleter.setCaseSensitivity (self, Qt.CaseSensitivity)
QCompleter.setCompletionColumn (self, int)
QCompleter.setCompletionMode (self, CompletionMode)
QCompleter.setCompletionPrefix (self, QString)
This method is also a Qt slot with the C++ signature void setCompletionPrefix(const QString&).
QCompleter.setCompletionRole (self, int)
bool QCompleter.setCurrentRow (self, int)
QCompleter.setMaxVisibleItems (self, int)
QCompleter.setModelSorting (self, ModelSorting)
The QAbstractItemView argument has it's ownership transferred to Qt.
QCompleter.setWidget (self, QWidget)
The QWidget argument has it's ownership transferred to Qt.
QCompleter.setWrapAround (self, bool)
This method is also a Qt slot with the C++ signature void setWrapAround(bool).
QStringList QCompleter.splitPath (self, QString)
QWidget QCompleter.widget (self)
bool QCompleter.wrapAround (self)
Qt Signal Documentation
void activated (const QString&)
This is the default overload of this signal.
void activated (const QModelIndex&)
void highlighted (const QString&)
This is the default overload of this signal.
void highlighted (const QModelIndex&)