[PyQt] Segfault bug report

Phil Thompson phil at riverbankcomputing.com
Wed Feb 17 17:22:25 GMT 2016


On 17 Feb 2016, at 10:17 am, Antony Lee <antony.lee at berkeley.edu> wrote:
> 
> The following segfaults under Python 3.5.1/PyQt 5.5.1 (after picking a choice in the QInputDialog):
> 
> from PyQt5.QtWidgets import *
> 
> class Main(QMainWindow):
>     def fail(self):
>         QInputDialog.getItem(self, "foo", "bar", ["baz"])
>         raise Exception
> 
> app = QApplication([])
> main = Main()
> main.fail()
> app.exec_()

Works fine for me with current snapshots on OSX.

Phil


More information about the PyQt mailing list