[PyQt] Segmentation fault with QVariant in signal signature

Philip Lorenz lorenzph+sip at in.tum.de
Sat Nov 20 13:13:29 GMT 2010


Hi,

I have been experiencing issues when emitting a signal with a QVariant 
signature containing a Python object. The issue seems to stem from the 
Chimera::Storage::address() function which returns the data part of the 
QVariant even if the wrapped object used to be a QVariant itself. I have 
attached a test case and a patch against PyQt 4.8.2-bb053c0310a3 nightly 
which fixes the issue for me.

--
Philip Lorenz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qvariantsignal.py
Type: text/x-python
Size: 454 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101120/b5677f81/attachment.py>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PyQt4_return_qvariant_when_needed.patch
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101120/b5677f81/attachment.ksh>


More information about the PyQt mailing list