Hi, we've been able to reproduce and fix a bug in PyQt 4.4.4 which causes a segfault when using QGraphicsProxyWidget's drag/drop events. The issue is that in QGPW sip file they aren't declared and thus the superclass ones are called (QGraphicsItem) which call back the subclass ones causing an infinite loop. The attached patch fixes it. Reproducible: Always Steps to Reproduce:
Created attachment 189083 [details, diff] QGraphicsProxyWidget patch that fixes the segfault
Created attachment 189084 [details, diff] patched ebuild
Thanks for reporting this bug and providing a patch as well Did you contact upstream to inform them about this issue in order to include your patch ( as long as it is valid ) on future PyQt4 releases ? :) It is always good to push our patches upstream as well :)
You're welcome. Of course I did, don't know if in the right way btw. Just mailed info@riverbankcomputing.com atm. Without that patch, drag and drop on QGPW causes segmentation faults due to infinite loop.
+*PyQt4-4.4.4-r4 (26 Apr 2009) + + 26 Apr 2009; Markos Chandras <hwoarang@gentoo.org> + +files/PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch, + +PyQt4-4.4.4-r4.ebuild: + Adding qt-xmlpatterns as dependency. Add patch for QGraphicsProxyWidget ( + thanks to Fabio Erculiani <lxnay@sabayonlinux.org> for providing the patch + ). Fixes bug #267012 + Thanks for reporting. Re-open if needed Please let us know if upstream responds to you about your proposed patch :)
Thanks to you too. Allright, will inform here if they'll decide to reply back.