Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Load website (vebview) using Firefox, Chrome or any other browser, How to cahange user-agent in QT 5
Forum Updated to NodeBB v4.3 + New Features

Load website (vebview) using Firefox, Chrome or any other browser, How to cahange user-agent in QT 5

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 833 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
    JETY
    wrote on last edited by
    #1

    I am a beginner in QT. I have a code that loads Google Earth plugin in a windows. Unfortunatley, IE (internet Explorer) does not like Google Earth plugin like many others, so I would like to load it using Firefox.
    I made some research and I found this "example":http://dipeshbhattarai.com/?p=48 and this "post":https://qt-project.org/forums/viewthread/21041 referring to the topic. Apparently I have to change the user agent to force Qwebview to use Firefox. The previous example is for QT 4 so it does not work anymore. I have been reading the QT API for "QNetworkRequest":http://qt-project.org/doc/qt-5/QNetworkRequest.html and "QWebView":http://qt-project.org/doc/qt-5/QWebView.html but I do not understand what I have to do.
    Could anyone help me on that.
    Thank you in advance.

    1 Reply Last reply
    0

    • Login

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