QCompleter Class Reference

#include <qcompleter.h>

Class Description

Definition at line 64 of file qcompleter.h.

+ Inheritance diagram for QCompleter:

Public Types

enum  CompletionMode { PopupCompletion, UnfilteredPopupCompletion, InlineCompletion }
 
enum  ModelSorting { UnsortedModel = 0, CaseSensitivelySortedModel, CaseInsensitivelySortedModel }
 

Public Slots

void setCompletionPrefix (const QString &prefix)
 
void complete (const QRect &rect=QRect())
 
void setWrapAround (bool wrap)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void activated (const QString &text)
 
void activated (const QModelIndex &index)
 
void highlighted (const QString &text)
 
void highlighted (const QModelIndex &index)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QCompleter (QObject *parent=0)
 
 QCompleter (QAbstractItemModel *model, QObject *parent=0)
 
 QCompleter (const QStringList &completions, QObject *parent=0)
 
 ~QCompleter ()
 
void setWidget (QWidget *widget)
 
QWidgetwidget () const
 
void setModel (QAbstractItemModel *c)
 
QAbstractItemModelmodel () const
 
void setCompletionMode (CompletionMode mode)
 
CompletionMode completionMode () const
 
QAbstractItemViewpopup () const
 
void setPopup (QAbstractItemView *popup)
 
void setCaseSensitivity (Qt::CaseSensitivity caseSensitivity)
 
Qt::CaseSensitivity caseSensitivity () const
 
void setModelSorting (ModelSorting sorting)
 
ModelSorting modelSorting () const
 
void setCompletionColumn (int column)
 
int completionColumn () const
 
void setCompletionRole (int role)
 
int completionRole () const
 
bool wrapAround () const
 
int maxVisibleItems () const
 
void setMaxVisibleItems (int maxItems)
 
int completionCount () const
 
bool setCurrentRow (int row)
 
int currentRow () const
 
QModelIndex currentIndex () const
 
QString currentCompletion () const
 
QAbstractItemModelcompletionModel () const
 
QString completionPrefix () const
 
virtual QString pathFromIndex (const QModelIndex &index) const
 
virtual QStringList splitPath (const QString &path) const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
 
bool event (QEvent *)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Properties

QString completionPrefix
 
ModelSorting modelSorting
 
CompletionMode completionMode
 
int completionColumn
 
int completionRole
 
int maxVisibleItems
 
Qt::CaseSensitivity caseSensitivity
 
bool wrapAround
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

Enumerator
PopupCompletion 
UnfilteredPopupCompletion 
InlineCompletion 

Definition at line 77 of file qcompleter.h.

Enumerator
UnsortedModel 
CaseSensitivelySortedModel 
CaseInsensitivelySortedModel 

Definition at line 83 of file qcompleter.h.

Constructor & Destructor Documentation

QCompleter ( QObject parent = 0)
QCompleter ( QAbstractItemModel model,
QObject parent = 0 
)
QCompleter ( const QStringList completions,
QObject parent = 0 
)
~QCompleter ( )

Member Function Documentation

void setWidget ( QWidget widget)
QWidget* widget ( ) const
void setModel ( QAbstractItemModel c)
QAbstractItemModel* model ( ) const
void setCompletionMode ( CompletionMode  mode)
CompletionMode completionMode ( ) const
QAbstractItemView* popup ( ) const
void setPopup ( QAbstractItemView popup)
void setCaseSensitivity ( Qt::CaseSensitivity  caseSensitivity)
Qt::CaseSensitivity caseSensitivity ( ) const
void setModelSorting ( ModelSorting  sorting)
ModelSorting modelSorting ( ) const
void setCompletionColumn ( int  column)
int completionColumn ( ) const
void setCompletionRole ( int  role)
int completionRole ( ) const
bool wrapAround ( ) const
int maxVisibleItems ( ) const
void setMaxVisibleItems ( int  maxItems)
int completionCount ( ) const
bool setCurrentRow ( int  row)
int currentRow ( ) const
QModelIndex currentIndex ( ) const
QString currentCompletion ( ) const
QAbstractItemModel* completionModel ( ) const
QString completionPrefix ( ) const
void setCompletionPrefix ( const QString prefix)
slot
void complete ( const QRect rect = QRect())
slot
void setWrapAround ( bool  wrap)
slot
virtual QString pathFromIndex ( const QModelIndex index) const
virtual
virtual QStringList splitPath ( const QString path) const
virtual
bool eventFilter ( QObject o,
QEvent e 
)
protectedvirtual

Reimplemented from QObject.

bool event ( QEvent )
protectedvirtual

Reimplemented from QObject.

void activated ( const QString text)
signal
void activated ( const QModelIndex index)
signal
void highlighted ( const QString text)
signal
void highlighted ( const QModelIndex index)
signal

Property Documentation

QString completionPrefix
readwrite

Definition at line 67 of file qcompleter.h.

ModelSorting modelSorting
readwrite

Definition at line 68 of file qcompleter.h.

CompletionMode completionMode
readwrite

Definition at line 69 of file qcompleter.h.

int completionColumn
readwrite

Definition at line 70 of file qcompleter.h.

int completionRole
readwrite

Definition at line 71 of file qcompleter.h.

int maxVisibleItems
readwrite

Definition at line 72 of file qcompleter.h.

Qt::CaseSensitivity caseSensitivity
readwrite

Definition at line 73 of file qcompleter.h.

bool wrapAround
readwrite

Definition at line 74 of file qcompleter.h.


The documentation for this class was generated from the following file: