Layouting::LineEdit Class
class Layouting::LineEditObejmuje klasę ` Utils::FancyLineEdit ` do wykorzystania w narzędziu do tworzenia układów. Więcej...
| Header: | #include <LineEdit> |
| Inherits: | Layouting::Widget |
Funkcje publiczne
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
Szczegółowy opis
Obsługuje autouzupełnianie, przycisk ikony po prawej stronie, tekst zastępczy oraz sygnał naciśnięcia klawisza Return. Gdy podłączona jest funkcja ` onReturnPressed()`, klawisze Return i Enter są akceptowane (nie są dalej propagowane).
Zobacz także: ` Layouting::CompletingTextEdit`, ` Layouting::TextEdit` oraz ` Layouting::Widget`.
Dokumentacja funkcji składowych
void LineEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Łączy obiekt ` func ` z sygnałem `FancyLineEdit::returnPressed` i włącza obsługę zdarzeń klawiszy Return/Enter, dzięki czemu nie są one przekazywane dalej. Po zniszczeniu obiektu ` guard ` połączenie to zostaje automatycznie usunięte.
void LineEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Łączy obiekt ` func ` z sygnałem `FancyLineEdit::rightButtonClicked`. Połączenie to jest automatycznie usuwane po zniszczeniu obiektu ` 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.