Layouting::CompletingTextEdit Class
class Layouting::CompletingTextEditОбіймає клас ` Utils::CompletingTextEdit ` для використання в конструкторі макетування. Детальніше...
| Header: | #include <CompletingTextEdit> |
| Inherits: | Layouting::Widget |
Публічні функції
| 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) |
Детальний опис
Надає функцію автозавершення, опціональну іконку праворуч та налаштовувану поведінку автозавершення на додаток до стандартних можливостей редагування багаторядкового тексту, що надаються класом TextEdit.
Див. також Layouting::TextEdit, Layouting::LineEdit та Layouting::Widget.
Документація щодо функцій-членів
void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Підключає об’єкт ` func ` до сигналу `CompletingTextEdit::returnPressed`. З’єднання автоматично видаляється під час знищення об’єкта ` guard `.
void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Підключає об’єкт « func » до сигналу «CompletingTextEdit::rightSideIconClicked». З’єднання автоматично видаляється під час знищення об’єкта « guard ».
void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)
Підключає об’єкт ` func ` до сигналу `textChanged`, передаючи поточний простий текст. З’єднання автоматично розривається при знищенні об’єкта ` guard `.
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.