En esta página

Layouting::Label Class

class Layouting::Label

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

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

Funciones públicas

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

Descripción detallada

Véase también Layouting::Widget.

Documentación de la función de miembro

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

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

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

Conecta ` func ` a la señal ` QLabel::linkHovered `.

La conexión se elimina automáticamente cuando se destruye guard, lo que evita que queden conexiones sin asignar. Se debe pasar el objeto cuyo ciclo de vida determina cuándo debe estar activa la conexión; normalmente, this de la clase contenedora.

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.