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 we can hidden"QtWebEngine Based Browser info" for websites that detecting browsers types...
Forum Update on Monday, May 27th 2025

How we can hidden"QtWebEngine Based Browser info" for websites that detecting browsers types...

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 425 Views
  • 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.
  • S Offline
    S Offline
    stackprogramer
    wrote on 26 Aug 2020, 18:01 last edited by stackprogramer
    #1

    How we can hidden"QtWebEngine Based Browser info" for websites that detect type browsers...i want to when i used Qt QtWebEngine, other thinks my browser is chrome or firefox...is there any way?

    for example this website detect my type browser.....https://www.whatismybrowser.com/
    YOUR WEB BROWSER IS:
    QtWebEngine Based Browser 5 on Windows 8

    thanks in advance

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on 27 Aug 2020, 03:30 last edited by Bonnie
      #2

      You need to change the user agent string.
      The c++ way is:

      QWebEngineProfile::defaultProfile()->setHttpUserAgent(userAgentString);
      

      (If you use other profile than the default one, then set user agent of that profile.)

      To get an user agent string for firefox, use firefox to open that https://www.whatismybrowser.com/
      On the bottom of the page you'll see "Your web browser's user agent"

      1 Reply Last reply
      2

      1/2

      26 Aug 2020, 18:01

      • Login

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