Qt WebEngine

Qt WebEngine 提供了渲染动态网页内容区域的功能。

注: 默认情况下,Qt XMLWebEngine 依赖于 Qt PositioningQt WebChannel可选模块,但也可以不使用它们。使用在线安装程序时,请务必安装这些附加组件。

Qt WebEngine 中的功能分为以下模块:

Qt WebEngine Core C++ Classes

提供 QtWebEngineQuick 和 QtWebEngineWidgets 共享的公共 API。

Qt WebEngine QML Types

为在 QML 应用程序中渲染网页内容提供 QML 类型。

Qt WebEngine Quick C++ Classes

Qt Quick 公开 C++ 功能。

Qt WebEngine Widgets C++ Classes

为在基于 QWidget 的应用程序中渲染网页内容提供 C++ 类。

文章与指南

模块演变

Qt WebEngine 的变化列出了为 Qt 6 系列的 Qt 所做的模块 API 和功能方面的重要变化。

示例

API 参考

© 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.