Layouting::LineEdit Class
class Layouting::LineEdit封装了Utils::FancyLineEdit ,以便在布局构建器中使用。更多内容...
| Header: | #include <LineEdit> |
| Inherits: | Layouting::Widget |
公共函数
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
详细说明
支持自动补全、右侧图标按钮、占位符文本以及回车键按下的信号。当连接onReturnPressed() 时,将接受“Return”和“Enter”键的输入(不会进一步传播)。
另请参阅 Layouting::CompletingTextEdit 、Layouting::TextEdit 和Layouting::Widget 。
成员函数文档
void LineEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
将func 连接到FancyLineEdit::returnPressed信号,并启用对Return/Enter键事件的捕获,使其不再继续传播。当guard 被销毁时,该连接将自动解除。
void LineEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
将func 连接到FancyLineEdit::rightButtonClicked信号。当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.