Layouting::CompletingTextEdit Class
class Layouting::CompletingTextEditKapslar in Utils::CompletingTextEdit för användning i ett layoutverktyg. Mer...
| Header: | #include <CompletingTextEdit> |
| Inherits: | Layouting::Widget |
Offentliga funktioner
| 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) |
Detaljerad beskrivning
Tillhandahåller automatisk komplettering, en valfri ikon till höger och konfigurerbart kompletteringsbeteende utöver de vanliga funktionerna för redigering av flerradig text i TextEdit.
Se även Layouting::TextEdit, Layouting::LineEdit och Layouting::Widget.
Dokumentation för medlemsfunktioner
void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Kopplar ihop ` func ` med signalen `CompletingTextEdit::returnPressed`. Kopplingen tas bort automatiskt när ` guard ` förstörs.
void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Kopplar samman ` func ` med signalen `CompletingTextEdit::rightSideIconClicked`. Kopplingen tas bort automatiskt när ` guard ` förstörs.
void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)
Kopplar samman ` func ` med signalen `textChanged` och vidarebefordrar den aktuella ren texten. Kopplingen tas automatiskt bort när ` guard ` förstörs.
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.