Nesta página

Layouting::LineEdit Class

class Layouting::LineEdit

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

Header: #include <LineEdit>
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)

Descrição detalhada

Oferece suporte a autocompletar, um botão com ícone à direita, um texto de espaço reservado e um sinal de pressionamento da tecla Return. Quando ` onReturnPressed()` está conectado, as teclas Return e Enter são aceitas (não são propagadas adiante).

Veja também Layouting::CompletingTextEdit, Layouting::TextEdit e Layouting::Widget.

Documentação das funções-membro

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

Conecta ` func ` ao sinal `FancyLineEdit::returnPressed` e permite que eventos da tecla Return/Enter sejam aceitos, de modo que não sejam propagados adiante. A conexão é removida automaticamente quando ` guard ` é destruído.

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

Conecta ` func ` ao sinal `FancyLineEdit::rightButtonClicked`. 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.