[Interest] How can I set proxy settings and QNetworkCookieJar with QWebEngine

Koehne Kai Kai.Koehne at theqtcompany.com
Mon Feb 22 07:33:44 CET 2016



> -----Original Message-----
> From: Interest [mailto:interest-
> bounces+kai.koehne=theqtcompany.com at qt-project.org] On Behalf Of
> NoRulez
> Sent: Sunday, February 21, 2016 4:14 AM
> To: QtWebEngine MailingList <qtwebengine at qt-project.org>; Qt Project
> MailingList <interest at qt-project.org>
> Subject: [Interest] How can I set proxy settings and QNetworkCookieJar with
> QWebEngine
> 
> Hello,
> 
> first, I know that I can't use QNetworkCookieJar with QWebEngine, but what
> are the new alternatives to set the CookieJar and Proxy settings with
> QWebEngine?

Qt 5.6 will feature a QWebEngineCookieStore: https://doc-snapshots.qt.io/qt5-5.6/qwebenginecookiestore.html

If QNetworkProxy::applicationProxy is set, it will also be used for Qt WebEngine. Otherwise, Qt WebEngine automatically picks up the proxy configuration from OS X and Windows.

> Users which saved cookies with CookieJar (ini file) from QWebKit, how can
> these load an save those with QWebEngine? 

I guess you can do this manually with the API in QWebEngineCookieStore.

> It was possible with Qt5.5 but now with Qt5.6 beta it isn't!

Could you elaborate?
 
Regards

Kai



More information about the Interest mailing list