[PyQt] PyQt5 Alternative to setHandlesChildEvents

James O'Hea annex12 at hotmail.com
Sat Jul 22 23:29:42 BST 2017


I have been porting a PyQt4 application to use PyQt5. Everything seems to work fine apart from one thing: setHandlesChildEvents is now obsolete with QGraphicsItemGroup meaning I can no longer pick up on click events on my items within a group.

What is the alternative approach with PyQt5? I have tried replacing it with self.MyGroup.setFiltersChildEvents(False) but this has no effect.

Thanks for any guidance,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170722/777d4634/attachment.html>

More information about the PyQt mailing list