In questa pagina

Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Incorpora Utils::CompletingTextEdit per l'utilizzo in un generatore di layout. Altro...

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

Funzioni pubbliche

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)

Descrizione dettagliata

Fornisce il completamento automatico, un'icona opzionale sul lato destro e un comportamento di completamento configurabile, oltre alle funzionalità standard di modifica del testo su più righe di TextEdit.

Vedi anche Layouting::TextEdit, Layouting::LineEdit e Layouting::Widget.

Documentazione sulle funzioni membro

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

Collega ` func ` al segnale `CompletingTextEdit::returnPressed`. Il collegamento viene automaticamente rimosso quando ` guard ` viene distrutto.

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

Collega l'func al segnale CompletingTextEdit::rightSideIconClicked. Il collegamento viene rimosso automaticamente quando l'guard viene distrutto.

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

Collega ` func ` al segnale `textChanged`, trasmettendo il testo in chiaro corrente. 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.