Is it possible to reinitialize (reset) a pyqt5 GUI App without needing to be closed and restarted? I mean to bring the Pyqt5 App to the original status (like deleting all entries that the user made after running it).
My problem: I'm using squish for Qt for testing. My ApplicationUnderTest (AUT) is used here as AttachedApp. Now when I run a test case and do some recording and then colse it, the AUT still have the modified state of the App (with all entries made in the previous testcase). Now when I want to record a new test case it will not work as I want, because I want that every test case shall be recorded and replayed without any kind of dependency on other test cases. I know that it's possible to let squish restart the AUT for every test case and thus it will be correctly reinitialized, but that's not what I want in this case. I want to let squish run the AUT only one time at the beginning and then attaching the AUT as used and then bring the AUT to original status for every test case without to restart it.