Na této stránce

Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Obaluje třídu ` Utils::CompletingTextEdit ` pro použití v nástroji pro tvorbu rozvržení. Více...

Header: #include <CompletingTextEdit>
Inherits: Layouting::Widget

Veřejné funkce

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)

Podrobný popis

Kromě standardních funkcí pro víceřádkovou úpravu textu, které nabízí TextEdit, poskytuje také automatické doplňování, volitelnou ikonu na pravé straně a konfigurovatelné chování doplňování.

Viz také Layouting::TextEdit, Layouting::LineEdit a Layouting::Widget.

Dokumentace členských funkcí

void CompletingTextEdit::onReturnPressed(QObject *guard, const std::function<void ()> &func)

Propojí objekt ` func ` se signálem `CompletingTextEdit::returnPressed`. Propojení se automaticky zruší při zničení objektu ` guard `.

void CompletingTextEdit::onRightSideIconClicked(QObject *guard, const std::function<void ()> &func)

Propojí objekt ` func ` se signálem `CompletingTextEdit::rightSideIconClicked`. Propojení se automaticky zruší, jakmile dojde ke zničení objektu ` guard `.

void CompletingTextEdit::onTextChanged(QObject *guard, const std::function<void (QString)> &func)

Propojí funkci ` func ` se signálem `textChanged` a předá mu aktuální prostý text. Propojení se automaticky zruší, jakmile je funkce ` guard ` zrušena.

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.