Layouting::Label Class

class Layouting::Label

Wraps QLabel for use in a Layouting builder. More...

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

Public Functions

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

Detailed Description

See also Layouting::Widget.

Member Function Documentation

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

Connects func to the QLabel::linkActivated signal. The connection is automatically removed when guard is destroyed.

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

Connects func to the QLabel::linkHovered signal.

The connection is automatically removed when guard is destroyed, which prevents dangling connections. Pass the object whose lifetime determines when the connection should be active, typically this of the enclosing class.