CompletingTextEdit Class

(Utils::CompletingTextEdit)

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

Header: #include <CompletingTextEdit>

Properties

Public Functions

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

Protected Functions

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

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 = nullptr)

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