On Sunday, February 23, 2014 2:01:06 PM UTC-8, Jacob Peck wrote:
>
> More info: 
> http://stackoverflow.com/questions/18416201/core-dump-with-pyqt4 
>
> The second answer seems to say that QObjects created without a parent 
> are owned by Qt instead of Python, and when they are destroyed they call 
> the destructor twice. 
>
>
Beware of bad information on the Internet.

http://stackoverflow.com/questions/18416201/core-dump-with-pyqt4

QObjects constructed without parent are owned by Qt instead of PyQt, 

This is exactly wrong--which you see if you follow the link it provides:

http://pyqt.sourceforge.net/Docs/PyQt4/qobject.html

QObject.__init__ (self, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of 
PyQt.

--------

Your answers inspired me to find this:

http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/development.html

http://python-camelot.s3.amazonaws.com/gpl/default/pyqt/doc/advanced/development.html

(I think these pages differ only in the dates.)

This is complicated.  I have not convinced myself that it is internally 
consistent, much less correct.  I haven't convinced myself that the advice 
for avoiding these problems does avoid the problems, but it looks 
promising--and a major PITA.

python-camelot is an open source project of Conceptive Engineering.  I 
don't know how reliable their PyQt advice is. 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to