På denne side

Layouting::Label Class

class Layouting::Label

Indkapsler ` QLabel ` til brug i en layout-builder. Mere...

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

Offentlige funktioner

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

Detaljeret beskrivelse

Se også Layouting::Widget.

Dokumentation for medlemsfunktioner

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

Forbinder ` func ` med signalet ` QLabel::linkActivated `. Forbindelsen afbrydes automatisk, når ` guard ` slettes.

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

Forbinder ` func ` med signalet ` QLabel::linkHovered `.

Forbindelsen fjernes automatisk, når guard destrueres, hvilket forhindrer uafsluttede forbindelser. Overfør det objekt, hvis levetid bestemmer, hvornår forbindelsen skal være aktiv, typisk this fra den omsluttende klasse.

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.