Assuming the context menu is a QMenu, then you have the `aboutToHide` signal: https://doc.qt.io/qt-5/qmenu.html#signals
On Friday, August 9, 2019 1:26:57 AM CEST Gáll Péter wrote: > Thanks, it worked for me. I'm using pg.Plotwidget(), so I get the signal > like that: > > self.power_graph.sceneObj.contextMenu[0].triggered.connect(self.export_click > ed) > > Is there a signal that detects closing the window too? I tried > contextMenu[0].detroyed, but is did not work. > > Peter -- +----------------------------------------------------+ Carlos Pascual Izarra Scientific Software Coordinator Computing Division ALBA Synchrotron [http://www.albasynchrotron.es] Carrer de la Llum 2-26 E-08290 Cerdanyola del Valles (Barcelona), Spain E-mail: [email protected] Phone: +34 93 592 4428 +----------------------------------------------------+ -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/7425508.QR1k4744xv%40pc218.
