Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set User Agent in QtWebEngine QML application
Forum Updated to NodeBB v4.3 + New Features

How to set User Agent in QtWebEngine QML application

Scheduled Pinned Locked Moved General and Desktop
qtwebengineuser agentqt 5.4.1webengineqml
1 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joelmar
    wrote on 17 Jun 2015, 11:23 last edited by joelmar
    #1

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

    My simple test application

        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?

    1 Reply Last reply
    0

    1/1

    17 Jun 2015, 11:23

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved