Hi...I have a question about calling constructors on close events...
I have implemented a close event for my MainWindow plus I set an attribute of mainwindow that sets it to delete itself when closed:
setAttribute(Qt::WA_DeleteOnClose);
But....when I create some widgets with this mainwindow as their parent they wont delete themselves when they are displayed at the time when the mainwindow is closed. Yes they get closed with the mainwindow but I think theyre not deleted.... I dont understand that since it should deleteOnClose as set in that attribute I mentioned and with its delete it should delete all of its child widgets...
Am I right or wrong ?
Problem is that my app doesnt exit when I close it at the time when some of its child widgets were not closed yet and are displayed with it. When I close the app MainWindow the process is still running in the background and it does not finish running...Mainwindow gets closed but stays running in a background process....so I assumed that it has to do something with not deleting of child widgets that are displayed when closing its parents....
Does anyone know how to fix this ?
Thanks in advance...
Bookmarks