Layouting::Label Class
class Layouting::LabelObejmuje klasę ` QLabel ` do wykorzystania w narzędziu do tworzenia układów. Więcej...
| Header: | #include <Label> |
| Inherits: | Layouting::Widget |
Funkcje publiczne
| void | onLinkActivated(QObject *guard, const std::function<void (const QString &)> &func) |
| void | onLinkHovered(QObject *guard, const std::function<void (const QString &)> &func) |
Zobacz też: Layouting::Widget.
Dokumentacja funkcji składowych
void Label::onLinkActivated(QObject *guard, const std::function<void (const QString &)> &func)
Łączy obiekt typu ` func ` z sygnałem typu ` QLabel::linkActivated `. Połączenie jest automatycznie usuwane po zniszczeniu obiektu typu ` guard `.
void Label::onLinkHovered(QObject *guard, const std::function<void (const QString &)> &func)
Łączy obiekt typu ` func ` z sygnałem ` QLabel::linkHovered `.
Połączenie jest automatycznie usuwane po zniszczeniu obiektu ` guard `, co zapobiega powstawaniu wiszących połączeń. Należy przekazać obiekt, którego czas życia określa, kiedy połączenie powinno być aktywne — zazwyczaj jest to ` this ` klasy nadrzędnej.
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.