Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2009-09

WebKit agent string

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcin Dębicki

Currently to change agent string using WebKit from QT I have to subclass QWebPage and write proper QString
*userAgentForUrl<http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.html#userAgentForUrl>
* (*self*, QUrl *url*) function. I wonder if there is a way to do that in fpc. I mean subclassing of QWebPage is unlikely possible but I think that making it possible to change agent string from default one wouldn't be such big problem.

Best regards,
Marcin D?bicki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20090902/549aeea0/attachment.html>

Den Jean
to Marcin Dębicki
Marcin D?bicki wrote 5 lines
rAgentForUrl> * (*self*, QUrl *url*) function. I wonder if there is a way to do that in fpc. I mean subclassing of QWebPage is unlikely possible but I think that making it possible to change agent string from default one wouldn't be such big problem.

I will add the possibility.