Layouting::CompletingTextEdit Class
class Layouting::CompletingTextEditUtils::CompletingTextEdit -Funktionen für die Verwendung in einem Layout-Builder. Mehr...
| Header: | #include <CompletingTextEdit> |
| Inherits: | Layouting::Widget |
Öffentliche Funktionen
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
| void | onTextChanged(QObject *guard, const std::function<void (QString)> &func) |
Ausführliche Beschreibung
Bietet neben den standardmäßigen Funktionen zur Bearbeitung mehrzeiliger Texte von „ TextEdit “ auch eine Autovervollständigung, ein optionales Symbol auf der rechten Seite und ein konfigurierbares Vervollständigungsverhalten.
Siehe auch „ Layouting::TextEdit “, „ Layouting::LineEdit “ und „ Layouting::Widget “.
Dokumentation zu Mitgliedsfunktionen
void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Verbindet „ func “ mit dem Signal „CompletingTextEdit::returnPressed“. Die Verbindung wird automatisch entfernt, wenn „ guard “ zerstört wird.
void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Verbindet „ func “ mit dem Signal „CompletingTextEdit::rightSideIconClicked“. Die Verbindung wird automatisch aufgehoben, wenn „ guard “ zerstört wird.
void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)
Verbindet „ func “ mit dem Signal „textChanged“ und übergibt dabei den aktuellen Klartext. Die Verbindung wird automatisch aufgehoben, wenn „ guard “ zerstört wird.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.