Layouting::LineEdit Class
class Layouting::LineEditIncorpora la classe ` Utils::FancyLineEdit ` per l'utilizzo in un generatore di layout. Altro...
| Header: | #include <LineEdit> |
| Inherits: | Layouting::Widget |
Funzioni pubbliche
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
Descrizione dettagliata
Supporta il completamento automatico, un pulsante con icona sul lato destro, un testo segnaposto e un segnale di pressione del tasto Invio. Quando onReturnPressed() è collegato, i tasti Invio e Enter vengono accettati (non vengono propagati ulteriormente).
Vedi anche Layouting::CompletingTextEdit, Layouting::TextEdit e Layouting::Widget.
Documentazione delle funzioni membro
void LineEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Collega ` func ` al segnale `FancyLineEdit::returnPressed` e abilita l'accettazione degli eventi relativi ai tasti Return/Enter, in modo che non vengano propagati ulteriormente. Il collegamento viene rimosso automaticamente quando ` guard ` viene distrutto.
void LineEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Collega ` func ` al segnale `FancyLineEdit::rightButtonClicked`. Il collegamento viene automaticamente rimosso quando ` guard ` viene distrutto.
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.