I've tested the following bit of code under these 2 setups:<br><br>1. Mac OSX 10.6.2 Intel<br> Python 2.6.5<br> Qt 4.6.2<br> PyQt 4.7.2<br><br>2. GNU/Linux x64 Fedora 8<br> Python 2.6.2<br> Qt 4.6.2<br> PyQt 4.7<br>
<br>The code runs fine on the Linux setup, but results in a segfault on OSX. Interestingly, if I declare the signal as pyqtSignal(object) rather than pyqtSignal(dict), the segfault doesn't happen. Also, if I change the dictionary's key from an integer to a string, the segfault goes away.<br>
<br>#######################################<br>from PyQt4 import QtCore<br><br>class A(QtCore.QObject):<br> foo = QtCore.pyqtSignal(dict)<br> <br>class B(QtCore.QObject):<br> def doStuff(self, obj):<br> print "got object", obj<br>
<br>a = A()<br>b = B()<br>a.foo.connect(b.doStuff)<br>a.foo.emit({0: "value"})<br><br>