En esta página

Layouting::LineEdit Class

class Layouting::LineEdit

Envuelve « Utils::FancyLineEdit » para su uso en un generador de maquetación. Más...

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

Funciones públicas

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

Descripción detallada

Admite autocompletado, un botón con icono a la derecha, un texto de marcador de posición y una señal al pulsar la tecla Intro. Cuando se conecta onReturnPressed(), se aceptan las teclas Intro y Enter (no se propagan más allá).

Véase también « Layouting::CompletingTextEdit », « Layouting::TextEdit » y « Layouting::Widget ».

Documentación de funciones de miembro

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

Conecta « func » a la señal «FancyLineEdit::returnPressed» y permite aceptar los eventos de la tecla «Return/Enter» para que no se propaguen más allá. La conexión se elimina automáticamente cuando se destruye « guard ».

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

Conecta ` func ` a la señal `FancyLineEdit::rightButtonClicked`. La conexión se elimina automáticamente cuando se destruye ` guard `.

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.