<div dir="ltr">Hi Florian, <div><br></div><div>thank you for your kind answer! I am trying to do my tiny webbrowser with ability to destroy all cookies (and tracking data) used by visited pages. My idea - I click on button "Erase all" and it should erase all cookies and tracking data so when I open page again it should be empty.</div>
<div><br></div><div>Many thanks</div><div>Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-11 23:16 GMT+02:00 Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
* Peter Irbizon <<a href="mailto:peterirbizon@gmail.com">peterirbizon@gmail.com</a>> [2014-05-11 23:05:55 +0200]:<br>
<div class="">> Hello, I am building simple web browser with pyqt.<br>
<br>
</div>Cool, I'm doing the same basically! (except maybe not simple :P)<br>
Is your code available somewhere?<br>
<div class=""><br>
> Please how can I set in my app to store all cookies and temporary<br>
> files to selected folder for opened website? Example is appreciated.<br>
<br>
</div>For temporary files: It depends what you mean exactly, but for things<br>
like favicons/page cache/HTML5 storage/..., you simply need to do<br>
something like:<br>
<br>
QWebSettings.globalSettings().setLocalStoragePath('/some/path')<br>
<br>
See:<br>
<br>
<a href="http://qt-project.org/doc/qt-4.8/qwebsettings.html#globalSettings" target="_blank">http://qt-project.org/doc/qt-4.8/qwebsettings.html#globalSettings</a><br>
<a href="http://qt-project.org/doc/qt-4.8/qwebsettings.html#setLocalStoragePath" target="_blank">http://qt-project.org/doc/qt-4.8/qwebsettings.html#setLocalStoragePath</a><br>
<br>
<br>
If you want caching of web content, it'll be a bit more complicated<br>
though, I think you need to subclass QNetworkAccessManager and use a<br>
QNetworkDiskCache.<br>
<br>
<br>
For Cookies, you need to subclass QNetworkCookieJar and add some way<br>
to save and load cookies.<br>
<br>
Example:<br>
<br>
<a href="http://git.the-compiler.org/qutebrowser/tree/qutebrowser/browser/cookies.py" target="_blank">http://git.the-compiler.org/qutebrowser/tree/qutebrowser/browser/cookies.py</a><br>
<br>
<br>
I'd really like to hear more of your project! You can reach me under<br>
this address via mail or Jabber, or in IRC (#pyqt on Freenode for<br>
example).<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
--<br>
() ascii ribbon campaign - stop html mail <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
/\ <a href="http://www.the-compiler.org" target="_blank">www.the-compiler.org</a> | I love long mails <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a><br>
Like winter snow on summer lawn, time past is time gone.<br>
</font></span><br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>