本页内容

QtWebView Namespace

QtWebView 命名空间提供了若干函数,可简化WebView 的配置和使用。更多内容...

头文件: #include <QtWebView>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebView)
target_link_libraries(mytarget PRIVATE Qt6::WebView)
qmake: QT += webview

功能

void initialize()

详细说明

函数文档

void QtWebView::initialize()

该函数用于初始化资源或设置不同后端所需的选项。

注意: 必须在创建 `QGuiApplication ` 实例之前立即调用` initialize() ` 函数。

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