Layouting::LineEdit Class
class Layouting::LineEditObaluje třídu ` Utils::FancyLineEdit ` pro použití v nástroji pro tvorbu rozvržení. Více...
| Header: | #include <LineEdit> |
| Inherits: | Layouting::Widget |
Veřejné funkce
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
Podrobný popis
Podporuje automatické dokončování, tlačítko s ikonou na pravé straně, text zástupného symbolu a signál stisknutí klávesy Return. Je-li připojena funkce onReturnPressed(), jsou klávesy Return a Enter akceptovány (nejsou dále šířeny).
Viz také Layouting::CompletingTextEdit, Layouting::TextEdit a Layouting::Widget.
Dokumentace členských funkcí
void LineEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Propojí objekt ` func ` se signálem `FancyLineEdit::returnPressed` a povolí přijímání událostí klávesy Return/Enter tak, aby se dále nešířily. Propojení se automaticky zruší, jakmile dojde ke zničení objektu ` guard `.
void LineEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Propojí objekt ` func ` se signálem `FancyLineEdit::rightButtonClicked`. Propojení se automaticky zruší, jakmile dojde ke zničení objektu ` 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.