- Extending Qt Creator Manual
- QtCreator
- Label
- Extending Qt Creator Manual 20.0.0

# Layouting::Label Class

class Layouting::Label

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

Header: | `#include <layoutbuilder.h>`
Inherits: | Layouting::Widget

- List of all members, including inherited members

## 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.