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.