Good day,
I have a PlotWidget that I send to, and display inside, a QDialog from the MainWindow using a signal triggered when the PlotWidget is double clicked. The PlotWidget as a whole is popped from the MainWindow. My problem is that when I click on the PlotWidget after it is sent to the QDialog and I close the dialog an exception is triggered by a section of the GraphicsScene's mouseReleaseEvent function. "self.clickEvents.remove(cev[0])" <- this line causes the exception. Either the mouseReleaseEvent is called when closing the dialog or the exception is not thrown immediately? I've noticed that when I single click on the PlotWidget there is a weird second event in the clickEvents variable of the GraphicsScene that looks to not be tied to a widget as shown in the screenshot.
I've tried clearing the GraphicsScene's clickEvents when entering the dialog in case there was an unprocessed click event, but no luck.
I'm using Win10 with Python3.8 64 bit.
Thanks,
Brandon