Sur cette page

Layouting::LineEdit Class

class Layouting::LineEdit

Enveloppe la méthode ` Utils::FancyLineEdit ` pour une utilisation dans un générateur de mise en page. En savoir plus...

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

Fonctions publiques

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

Description détaillée

Prend en charge la saisie semi-automatique, un bouton d’icône à droite, un texte de remplacement et un signal de pression de la touche Retour. Lorsque onReturnPressed() est connecté, les touches Retour et Entrée sont acceptées (elles ne sont pas propagées plus loin).

Voir également Layouting::CompletingTextEdit, Layouting::TextEdit et Layouting::Widget.

Documentation des fonctions membres

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

Associe la classe « func » au signal « FancyLineEdit::returnPressed » et permet d’intercepter les événements liés aux touches Retour et Entrée afin qu’ils ne soient pas propagés plus loin. La connexion est automatiquement supprimée lorsque la classe « guard » est détruite.

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

Associe ` func ` au signal `FancyLineEdit::rightButtonClicked`. La connexion est automatiquement supprimée lorsque ` guard ` est détruit.

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.