QWhatsThisClickedEvent Class
QWhatsThisClickedEvent 类提供了一个事件,可用于处理“这是什么?”文本中的超链接。更多内容...
| 标题: | #include <QWhatsThisClickedEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 继承自: | QEvent |
- 所有成员的列表,包括继承的成员
- QWhatsThisClickedEvent 属于“事件类”和“帮助系统”。
公共函数
| QWhatsThisClickedEvent(const QString &href) | |
| QString | href() const |
受保护函数
| QWhatsThisClickedEvent(QWhatsThisClickedEvent &&) | |
| QWhatsThisClickedEvent & | operator=(QWhatsThisClickedEvent &&) |
| QWhatsThisClickedEvent & | operator=(const QWhatsThisClickedEvent &other) |
另请参阅 QWhatsThis 、QHelpEvent 和QStatusTipEvent 。
成员函数文档
[explicit] QWhatsThisClickedEvent::QWhatsThisClickedEvent(const QString &href)
当在“这是什么?”消息中点击链接时,会构建一个包含由href 指定的 URL 的事件。
另请参阅 href()。
[protected delete] QWhatsThisClickedEvent::QWhatsThisClickedEvent(QWhatsThisClickedEvent &&)
通过移动构造一个QWhatsThisClickedEvent 实例。该函数已被删除。
QString QWhatsThisClickedEvent::href() const
返回用户在“这是什么?”文本中点击的 URL。
[protected delete] QWhatsThisClickedEvent &QWhatsThisClickedEvent::operator=(QWhatsThisClickedEvent &&)
将other 按移动赋值方式赋值给该QWhatsThisClickedEvent 实例。该函数已被删除。
[noexcept protected default] QWhatsThisClickedEvent &QWhatsThisClickedEvent::operator=(const QWhatsThisClickedEvent &other)
将other 复制并赋值给此QWhatsThisClickedEvent 实例。
© 2026 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.