Na této stránce

Layouting::Label Class

class Layouting::Label

Obaluje třídu ` QLabel ` pro použití v nástroji pro tvorbu rozvržení. Více...

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

Veřejné funkce

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

Podrobný popis

Viz také Layouting::Widget.

Dokumentace členských funkcí

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

Propojí funkci ` func ` se signálem ` QLabel::linkActivated `. Propojení se automaticky zruší, jakmile dojde ke zničení objektu ` guard `.

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

Propojí objekt typu ` func ` se signálem ` QLabel::linkHovered `.

Spojení je automaticky odstraněno při zničení objektu ` guard `, čímž se zabrání vzniku neplatných spojení. Předávejte objekt, jehož životnost určuje, kdy má být spojení aktivní, obvykle ` this ` obklopující třídy.

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.