На цій сторінці

Layouting::Label Class

class Layouting::Label

Обертає метод ` QLabel ` для використання в конструкторі макетування. Детальніше...

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

Публічні функції

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

Детальний опис

Див. також Layouting::Widget.

Документація щодо функцій-членів

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

З'єднує об'єкт « func » із сигналом « QLabel::linkActivated ». З'єднання автоматично розривається під час знищення об'єкта « guard ».

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

Підключає об’єкт « func » до сигналу « QLabel::linkHovered ».

З'єднання автоматично видаляється при знищенні об'єкта ` guard `, що запобігає утворенню «висячих» з'єднань. Передайте об'єкт, тривалість існування якого визначає, коли з'єднання має бути активним; зазвичай це ` this ` класу, що його оточує.

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.