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.