Nesta página

Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Envolve a classe ` Utils::CompletingTextEdit ` para uso em um construtor de layout. Mais...

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

Funções públicas

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)

Descrição detalhada

Oferece autocompletamento, um ícone opcional à direita e comportamento de autocompletamento configurável, além dos recursos padrão de edição de texto em várias linhas do ` TextEdit`.

Veja também ` Layouting::TextEdit`, ` Layouting::LineEdit` e ` Layouting::Widget`.

Documentação de funções-membro

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

Conecta ` func ` ao sinal `CompletingTextEdit::returnPressed`. A conexão é removida automaticamente quando ` guard ` é destruído.

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

Conecta o ` func ` ao sinal `CompletingTextEdit::rightSideIconClicked`. A conexão é removida automaticamente quando o ` guard ` é destruído.

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

Conecta ` func ` ao sinal `textChanged`, passando o texto simples atual. A conexão é removida automaticamente quando ` guard ` é destruído.

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.