把 C++ 功能暴露给 Qt Quick。 更多...
| QtWebEngineQuick | 用于 Qt WebEngine (Qt Quick) 模块的帮手函数 |
| QQuickWebEngineProfile | 由多个页面共享的 Web 引擎 Profile (配置文件) |
The Qt WebEngine Quick module exposes C++ functionality to Qt Quick.
要链接到模块,添加以下到 qmake 工程文件:
QT += webenginequick
For build with CMake use the
find_package()
command to locate the needed module components in the Qt6 package and
target_link_libraries()
to link against the module:
find_package(Qt6 REQUIRED COMPONENTS WebEngineQuick) target_link_libraries(target PRIVATE Qt::WebEngineQuick)