På den här sidan

Layouting::Label Class

class Layouting::Label

Kapslar in QLabel för användning i ett Layouting-verktyg. Mer...

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

Offentliga funktioner

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

Detaljerad beskrivning

Se även Layouting::Widget.

Dokumentation för medlemsfunktioner

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

Kopplar samman func med signalen QLabel::linkActivated. Anslutningen tas automatiskt bort när guard förstörs.

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

Kopplar samman func med signalen QLabel::linkHovered.

Anslutningen tas automatiskt bort när guard förstörs, vilket förhindrar hängande anslutningar. Ange det objekt vars livslängd avgör när anslutningen ska vara aktiv, vanligtvis this i den omslutande klassen.

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.