Layouting::CompletingTextEdit Class
class Layouting::CompletingTextEditObejmuje klasę ` Utils::CompletingTextEdit ` do wykorzystania w narzędziu do tworzenia układów. Więcej...
| Header: | #include <CompletingTextEdit> |
| Inherits: | Layouting::Widget |
Funkcje publiczne
| void | onReturnPressed(QObject *guard, const std::function<void ()> &func) |
| void | onRightSideIconClicked(QObject *guard, const std::function<void ()> &func) |
| void | onTextChanged(QObject *guard, const std::function<void (QString)> &func) |
Szczegółowy opis
Oprócz standardowych możliwości edycji tekstu wielowierszowego obiektu ` TextEdit` zapewnia autouzupełnianie, opcjonalną ikonę po prawej stronie oraz konfigurowalne zachowanie funkcji autouzupełniania.
Zobacz także: Layouting::TextEdit, Layouting::LineEdit oraz Layouting::Widget.
Dokumentacja funkcji składowych
void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)
Łączy obiekt ` func ` z sygnałem `CompletingTextEdit::returnPressed`. Połączenie to jest automatycznie usuwane w momencie zniszczenia obiektu ` guard `.
void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)
Łączy obiekt ` func ` z sygnałem `CompletingTextEdit::rightSideIconClicked`. Połączenie jest automatycznie usuwane po zniszczeniu obiektu ` guard `.
void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)
Łączy metodę ` func ` z sygnałem `textChanged`, przekazując bieżący tekst zwykły. Połączenie 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.