可以把 QML 類型導入應用程序,使用以下 import 語句在 .qml 文件:
import QtWebEngine 1.5
要鏈接到模塊,添加以下 QT 變量到 qmake .pro 文件:
QT += webengine
| WebEngineCertificateError | A utility type for ignoring certificate errors or rejecting erroneous certificates |
| ContextMenuRequest | 用於展示上下文菜單的請求 |
| AuthenticationDialogRequest | A request for providing authentication credentials required by proxies or HTTP servers |
| ColorDialogRequest | 用於通過用戶選擇顔色的請求 |
| FileDialogRequest | A request for letting the user choose a (new or existing) file or directory |
| FormValidationMessageRequest | A request for showing a HTML5 form validation message to the user |
| JavaScriptDialogRequest | A request for showing an alert, a confirmation, or a prompt dialog from within JavaScript to the user |
| WebEngineDownloadItem | 提供下載的有關信息 |
| WebEngineHistory | Provides data models that represent the history of a web engine page |
| WebEngineHistoryListModel | A data model that represents the history of a web engine page |
| WebEngineLoadRequest | A utility type for the WebEngineView::loadingChanged signal |
| WebEngineNavigationRequest | Represents a request for navigating to a web page as part of WebEngineView::navigationRequested() |
| WebEngineNewViewRequest | A utility type for the WebEngineView::newViewRequested signal |
| WebEngineProfile | Contains settings, scripts, and visited links common to multiple web engine views |
| WebEngineScript | Enables the programmatic injection of scripts in the JavaScript engine |
| WebEngineSettings | Allows configuration of browser properties and attributes |
| WebEngine | Provides access to the default settings and profiles shared by all web engine views |
| WebEngineFullScreenRequest | A utility type for the WebEngineView::fullScreenRequested() signal |
| WebEngineView | A WebEngineView renders web content within a QML application |