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. Why when i set user agent (to android )in QWebEngineProfile, I am identified as QtWebEngine Based Browser??
Forum Updated to NodeBB v4.3 + New Features

Why when i set user agent (to android )in QWebEngineProfile, I am identified as QtWebEngine Based Browser??

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 418 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.
  • stackprogramerS Offline
    stackprogramerS Offline
    stackprogramer
    wrote on last edited by
    #1

    Hi, i used webengine as custom browser in qt and i set user agent to android...but am identified as QtWebEngine Based Browser......
    my question: is there any way that my custom browser is not dectect as QtWebEngine Based Browser.. thanks in advance

       m_otrProfile.setHttpUserAgent("Mozilla/5.0 (Linux; Android 7.0; SM-A310F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36 OPR/42.7.2246.114996");
    
    
    QtWebEngine Based Browser 5 in windows 8
    

    link website that detect my browser.....
    https://www.whatismybrowser.com/

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      How do you apply m_otrProfile to your browser?

      1 Reply Last reply
      1
      • stackprogramerS Offline
        stackprogramerS Offline
        stackprogramer
        wrote on last edited by
        #3

        @Bonnie said in Why when i set user agent (to android )in QWebEngineProfile, I am identified as QtWebEngine Based Browser??:

        How do you apply m_otrProfile to your browser?

        my problem is solved. i had a bug in code. thanks

        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