[Qtwebengine] How to set User Agent in QtWebEngine QML application

joël maranhão joel.maranhao at gmail.com
Wed Jun 17 17:40:42 CEST 2015

My simple test QML

    import QtQuick 2.1
    import QtQuick.Controls 1.1
    import QtWebEngine 1.0

    ApplicationWindow {
        width: 800
        height: 600
        color: "lightgray"
        visible: true
        WebEngineView {
            id: webview
            url: "http://forum.qt.io/"
            anchors.fill: parent

How do I pass a different User Agent string?

NOTE: I was able to do that on QtWebKit QML using the QtWebView extension.
Here I am interested in using QtWebEngine.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20150617/1e856422/attachment.html>

More information about the QtWebEngine mailing list