Layouting::CompletingTextEdit Class
class Layouting::CompletingTextEditWraps Utils::CompletingTextEdit for use in a Layouting builder. More...
| Header: | #include <layoutbuilder.h> |
| Inherits: | Layouting::Widget |
Public Functions
| 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) |
Detailed Description
Provides auto-completion, an optional right-side icon, and configurable completion behavior in addition to the standard multi-line text editing capabilities of TextEdit.
See also Layouting::TextEdit, Layouting::LineEdit, and Layouting::Widget.
Member Function Documentation
void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Connects func to the CompletingTextEdit::returnPressed signal. The connection is automatically removed when guard is destroyed.
void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Connects func to the CompletingTextEdit::rightSideIconClicked signal. The connection is automatically removed when guard is destroyed.
void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)
Connects func to the textChanged signal, passing the current plain text. The connection is automatically removed when guard is destroyed.
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.