Sur cette page

Layouting::CompletingTextEdit Class

class Layouting::CompletingTextEdit

Enveloppe la classe « Utils::CompletingTextEdit » pour une utilisation dans un générateur de mise en page. En savoir plus…

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

Fonctions publiques

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)

Description détaillée

Fournit la saisie semi-automatique, une icône facultative à droite et un comportement de saisie semi-automatique configurable, en plus des fonctionnalités standard d'édition de texte multiligne de TextEdit.

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

Documentation sur les fonctions membres

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

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

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

Associe l'func au signal CompletingTextEdit::rightSideIconClicked. La connexion est automatiquement supprimée lorsque l'guard est détruite.

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

Associe la méthode ` func ` au signal `textChanged`, en transmettant le texte brut actuel. La connexion est automatiquement supprimée lorsque l'objet ` 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.