QtWebView 名称空间提供的函数,使之更易于设置和使用 WebView . 更多...
头: | #include <QtWebView> |
CMake: |
find_package(Qt6 COMPONENTS WebView REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::WebView) |
qmake: | QT += webview |
void | initialize () |
This function initializes resources or sets options that are required by the different back-ends.
注意:
initialize()
function needs to be called immediately before the
QGuiApplication
实例被创建。