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.