On Wed, Dec 05, 2012 at 09:40:38AM -0300, Alexis Menard wrote: > On Wed, Dec 5, 2012 at 8:55 AM, Alberto Mardegan > <ma...@users.sourceforge.net> wrote: > > Hi all! > > I'm trying to port some code from the QtWebkit included in Qt 4.8 to the > > Qt5 QtQuick WebView. > > One point where I'm stuck is how to access the QNetworkAccessManager used by > > the QtQuickWebView, because I want to call setCookieJar() on it. > > > > Is there any way to do this? > > No as in Qt5 the QNAM sits in a separate process, the WebProcess one. > There is no solution yet for you to access to it. > > Maybe in the future there will be an API to provide such information > to the QNAM, or even the possibility for you to set your own QNAM. > > Hope that helps. >
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. // Jocelyn _______________________________________________ webkit-qt mailing list webkit-qt@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-qt