Qt WebEngine

The Qt WebEngine module provides the WebEngineView API which allows QML applications to render regions of dynamic web content. A WebEngineView component may share the screen with other QML components or encompass the full screen as specified within the QML application.

It allows an application to load pages into the WebEngineView, either by URL or with an HTML string, and navigate within session history. By default, links to different pages load within the same WebEngineView, but web sites may request them to be opened as a new tab, window or dialog.

The following sample QML application loads a web page, responds to session history context.

import QtQuick 2.1
import QtQuick.Controls 1.1
import QtWebEngine 1.1

ApplicationWindow {
    width: 1280
    height: 720
    visible: true
    WebEngineView {
        id: webview
        url: "http://www.qt-project.org"
        anchors.fill: parent
    }
}

API References

Examples

There are several Qt WebEngine examples located in the Qt WebEngine Examples page.

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