We have to dynamically use some third-party Javascript code that unfortunately does user agent detection, and thus need a way of dynamically setting the user agent.
I found the function: QString QWebPage::userAgentForUrl ( const QUrl & url ) const [virtual protected], which seems to do what I want, but we use a QWebView, and I'm not sure how to subclass the QWebView's QWebPage without subclassing the QWebView itself. Is there an easy way to change the user agent without doing all of this subclassing work? Per-URL would be great, but it could probably be global for the time being. Thanks! _______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
