На этой странице

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.