Layouting::Label Class
class Layouting::LabelQLabel をラップし、レイアウトビルダーで使用できるようにします。詳細...
| 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.