Layouting::Label Class
class Layouting::LabelWraps QLabel for use in a Layouting builder. More...
| Header: | #include <layoutbuilder.h> |
| 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) |
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.
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.