7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qobject.h>
9#include <QtCore/qpoint.h>
10#include <QtCore/qstring.h>
11#include <QtCore/qabstractitemmodel.h>
12#include <QtCore/qrect.h>
26 Q_PROPERTY(
QString completionPrefix READ completionPrefix WRITE setCompletionPrefix)
28 Q_PROPERTY(Qt::MatchFlags filterMode READ filterMode WRITE setFilterMode)
30 Q_PROPERTY(
int completionColumn READ completionColumn WRITE setCompletionColumn)
31 Q_PROPERTY(
int completionRole READ completionRole WRITE setCompletionRole)
32 Q_PROPERTY(
int maxVisibleItems READ maxVisibleItems WRITE setMaxVisibleItems)
34 Q_PROPERTY(
bool wrapAround READ wrapAround WRITE setWrapAround)
47 CaseInsensitivelySortedModel
53#if QT_CONFIG(stringlistmodel)
64 void setCompletionMode(CompletionMode
mode);
65 CompletionMode completionMode()
const;
67 void setFilterMode(Qt::MatchFlags filterMode);
68 Qt::MatchFlags filterMode()
const;
76 void setModelSorting(ModelSorting sorting);
77 ModelSorting modelSorting()
const;
79 void setCompletionColumn(
int column);
80 int completionColumn()
const;
82 void setCompletionRole(
int role);
83 int completionRole()
const;
85 bool wrapAround()
const;
87 int maxVisibleItems()
const;
88 void setMaxVisibleItems(
int maxItems);
90 int completionCount()
const;
91 bool setCurrentRow(
int row);
92 int currentRow()
const;
95 QString currentCompletion()
const;
99 QString completionPrefix()
const;
102 void setCompletionPrefix(
const QString &prefix);
104 void setWrapAround(
bool wrap);
The QAbstractItemView class provides the basic functionality for item view classes.
The QAbstractProxyModel class provides a base class for proxy item models that can do sorting,...
The QCompleter class provides completions based on an item model.
void highlighted(const QString &text)
This signal is sent when an item in the popup() is highlighted by the user.
CompletionMode
This enum specifies how completions are provided to the user.
@ UnfilteredPopupCompletion
ModelSorting
This enum specifies how the items in the model are sorted.
@ CaseSensitivelySortedModel
void highlighted(const QModelIndex &index)
This signal is sent when an item in the popup() is highlighted by the user.
void activated(const QModelIndex &index)
This signal is sent when an item in the popup() is activated by the user.
void activated(const QString &text)
This signal is sent when an item in the popup() is activated by the user (by clicking or pressing ret...
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLenum GLenum GLsizei void GLsizei void * column
GLsizei const GLchar *const * path
GLenum GLenum GLsizei void * row
static QT_BEGIN_NAMESPACE QAsn1Element wrap(quint8 type, const QAsn1Element &child)
#define QT_REQUIRE_CONFIG(feature)
view setModel(model)
[17] //! [18]
QSqlQueryModel * model
[16]
wordList<< "alpha"<< "omega"<< "omicron"<< "zeta";QLineEdit *lineEdit=new QLineEdit(this);QCompleter *completer=new QCompleter(wordList, this);completer-> setCaseSensitivity(Qt::CaseInsensitive)
QCompleter * completer
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent