CompletingTextEdit Class

(Utils::CompletingTextEdit)

The CompletingTextEdit class is a QTextEdit with auto-completion support. More...

Header: #include <CompletingTextEdit>
Inherits: QTextEdit

Properties

Public Functions

CompletingTextEdit(QWidget *parent = 0)
~CompletingTextEdit()
QCompleter *completer() const
int completionLengthThreshold() const
void setCompleter(QCompleter *c)
void setCompletionLengthThreshold(int len)

Reimplemented Protected Functions

virtual bool event(QEvent *e)
virtual void focusInEvent(QFocusEvent *e)
virtual void keyPressEvent(QKeyEvent *e)

Additional Inherited Members

Detailed Description

The CompletingTextEdit class is a QTextEdit with auto-completion support.

Excerpted from Qt examples/tools/customcompleter.

Property Documentation

completionLengthThreshold : int

Access functions:

int completionLengthThreshold() const
void setCompletionLengthThreshold(int len)

Member Function Documentation

CompletingTextEdit::CompletingTextEdit(QWidget *parent = 0)

Default constructs an instance of CompletingTextEdit.

CompletingTextEdit::~CompletingTextEdit()

Destroys the instance of CompletingTextEdit.

QCompleter *CompletingTextEdit::completer() const

See also setCompleter().

[virtual protected] bool CompletingTextEdit::event(QEvent *e)

[virtual protected] void CompletingTextEdit::focusInEvent(QFocusEvent *e)

[virtual protected] void CompletingTextEdit::keyPressEvent(QKeyEvent *e)

void CompletingTextEdit::setCompleter(QCompleter *c)

See also completer().