how to save/load cookies to/from QNetworkAccessManager
<p>I used QNetworkAccessManager to load pages and login to some sites. I want to save cookies and load them to next using this programm.</p>

<p>I write this code to save cookies:</p>

<pre><code>import shelve
self.netManager=QNetworkAccessManager()
#... Load Pages and Login ....
with shelve.open('LoginDb','c') as db:
    db['cooki']=netManager.CookieJar()
</code></pre>

<p>and this code to load cookies:</p>

<pre><code>with shelve.open('LoginDb','c') as db:
    self.netManager.setCookieJar(db['cooki'])
</code></pre>

<p>But setCookieJar doesn't work and arise this error:</p>

<blockquote>
  <p>super-class <strong>init</strong>() of type QNetworkCookieJar was never called</p>
</blockquote>

<p>What can i do to do this?</p>