CompletingTextEdit Class | Extending Qt Creator Manual

Extending Qt Creator Manual | CompletingTextEdit

Extending Qt Creator Manual 4.6.0

# CompletingTextEdit Class

(Utils::CompletingTextEdit)

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

Header: | #include <CompletingTextEdit>

- List of all members, including inherited members

## Properties

- completionLengthThreshold : int

## Public Functions

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

## Protected Functions

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

## 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().

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

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

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

### void CompletingTextEdit::setCompleter(QCompleter *c)

See also completer().