0
I am creating an application in Pyqt5 and need to run a code when the application is finishing. For that, I thought about overwriting the method quit
class QApplication
:
class MyApp(QApplication):
def quit(self):
print("Meu código...")
super().quit()
The problem is that this method is not running when the program ends. My question is: how can I define an event "on_quit
" to the QApplication
in Pyqt5?
Yes, I know this event but it’s not what I’m looking for. I really need to create an "on_quit" for the application, without relying on widgets.
– JeanExtreme002