이 페이지에서

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.