[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] RuntimeError: wrapped C/C++ object of type QNetworkCookieJar has been deleted
From:       Joe Borġ <mail () jdborg ! com>
Date:       2012-11-26 15:05:25
Message-ID: CAFFYk1X04_1FcauZdEOGPS2t7=1Y+AxB-N-oHfKOMuEycYS_0Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi All,

Having some trouble with a example I'm using to try and make a web browser.

If you look here
http://code.google.com/p/devicenzo/source/browse/trunk/devicenzo.py there
is an example for a web browser in PyQt that I've looked at to try and get
cookies working on my own.  The problem is that it has the same issue as
mine.  If you run it (opening a site that dumps a cookie), open a tab,
close that tab and then try and open another tab (happens a lot).  Then you
get this error:

Traceback (most recent call last):
  File "./qtwk.py", line 62, in closeEvent
    self.put("cookiejar", [str(c.toRawForm()) for c in
self.cookies.allCookies()])
RuntimeError: wrapped C/C++ object of type QNetworkCookieJar has been
deleted

Does anyone know why closing the tab is sending the destruct signal to the
self.cookies instance?  And how to fix it.

Many thanks,
Joseph David Bor=C4=A1
http://www.jdborg.com

[Attachment #5 (text/html)]

Hi All,<br><br>Having some trouble with a example I&#39;m using to try and make a web \
browser.<br><br>If you look here <a \
href="http://code.google.com/p/devicenzo/source/browse/trunk/devicenzo.py">http://code.google.com/p/devicenzo/source/browse/trunk/devicenzo.py</a> \
there is an example for a web browser in PyQt that I&#39;ve looked at to try and get \
cookies working on my own.   The problem is that it has the same issue as mine.   If \
you run it (opening a site that dumps a cookie), open a tab, close that tab and then \
try and open another tab (happens a lot).   Then you get this error:<br>

<br>Traceback (most recent call last):<br>   File &quot;./qtwk.py&quot;, line 62, in \
closeEvent<br>       self.put(&quot;cookiejar&quot;, [str(c.toRawForm()) for c in \
self.cookies.allCookies()])<br>RuntimeError: wrapped C/C++ object of type \
QNetworkCookieJar has been deleted<br>

<br>Does anyone know why closing the tab is sending the destruct signal to the \
self.cookies instance?   And how to fix it.<br clear="all"><br clear="all">Many \
thanks,<br>Joseph David Borġ <br><a href="http://www.jdborg.com" \
target="_blank">http://www.jdborg.com</a><br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic