[webkit-qt] QtQuick WebView and QNetworkAccessManager

Alberto Mardegan mardy at users.sourceforge.net
Wed Dec 5 10:09:28 PST 2012


On 12/05/2012 02:36 PM, Jocelyn Turcotte wrote:
> If all you want is to save cookies, there is now a default implementation for the cookie jar that automatically saves the cookies in an sqlite database in QStandardPaths::writableLocation(QStandardPaths::DataLocation).
> The path for me on Linux is ~/.local/share/[Org]/[App]/.QtWebKit/cookies.db.

What I need is the possibility of specifying a different cookie location 
per WebView.
I see that WebContext has a setCookieStorageDirectory() method, but it's 
not exposed in the qt API (nor any of the other APIs, except the C one). 
Having that exposed in the QML WebView component would actually fulfil 
my needs.
There's also a WebCookieManagerProxy class which sounds interesting, but 
I didn't understand what it is exactly.

I wonder if there's a chance for a "cookieStorageDirectory" property 
appearing in the WebView element, or is it too late for Qt5?

Ciao,
   Alberto




More information about the webkit-qt mailing list