QWhatsThisClickedEvent Class

QWhatsThisClickedEvent 类提供了一个事件,可用于处理 "这是什么?"文本中的超链接。更多

标题 #include <QWhatsThisClickedEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
继承: QEvent

公共函数

QWhatsThisClickedEvent(const QString &href)
QString href() const

详细说明

另请参阅 QWhatsThis,QHelpEvent, 和QStatusTipEvent

成员函数文档

[explicit] QWhatsThisClickedEvent::QWhatsThisClickedEvent(const QString &href)

当点击 "这是什么?"信息中的链接时,构造一个包含href 指定的 URL 的事件。

另请参阅 href().

QString QWhatsThisClickedEvent::href() const

返回用户在 "这是什么?"文本中点击的 URL。

© 2025 The Qt Company Ltd. 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.