Hi everyone !
I am trying to create a custom QDialog in Python. Whenever you add a custom signal/slot connection, the application crashes on exit.
Here is the minimal example you can reproduce the crash with, following the steps:
- Open Slicer
- Run the python code below:
class CustomDialog(qt.QDialog): def __init__(self, parent = None): qt.QDialog.__init__(self, parent) self.connect('accepted()', self.myCustomSlot) def myCustomSlot(self): print("Doesn't matter") w = CustomDialog() w.open()
- Exit Slicer
Has someone else encountered something like this ? I managed to reproduce it in the nightly and in an older windows build (2019-08-20 hash: 499d10b035181586489f5e3d60ff486a136a12bb).
P.S.: Here is an example of the call-stack after the crash: