[Qtwebengine] How to change user agent?
fbernhard at gmail.com
Tue Jan 21 13:41:48 CET 2014
I think you'll most likely need something like this for your needs:
> It is essentially just missing the permission granting part (which could
> be a bit of a problem if the contents you load are untrusted, you have been
Thats fine in my case since I let the QtWebEngine only open exactly one
website which we control ourselves.
> We don't have user agent string overriding implemented yet (shouldn't be
> too hard, we just didn't get around to it), but in that case, WebRTC should
> work everywhere they sniff the UA-string thanks to adding the a mention of
> Chromium and the version we're based off alongside the usual suspects
> (Mozilla, WebKit, KHTML, Gecko and Safari).
Many of the WebRTC websites including ours use Google's adapter.js  to
set up the peer connection. With the current user agent this script fails
Thats the reason I'd like to change the user agent. Would you by any chance
know where in the source the current user agent is defined? I have grep'ed
all .h, .c and .cpp files for AppleWebKit and couldn't find a match...
Thanks and regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the QtWebEngine