tntcoda
25th June 2008, 15:22
Hi,
If i have this code to start up a dialog from my main window:
GoQueueInfoDlg *dlg = new GoQueueInfoDlg(this, qu);
dlg->show();
Do i have to delete dlg (Subclass of QDialog) at some point? I wasn't sure if qt auto deletes it because its not a child of something :confused:
If i do need to delete it, where do i do it? I could do it in the destructor of my main window, but is there any point if the program terminates there anyway?
Thanks,
Jack
If i have this code to start up a dialog from my main window:
GoQueueInfoDlg *dlg = new GoQueueInfoDlg(this, qu);
dlg->show();
Do i have to delete dlg (Subclass of QDialog) at some point? I wasn't sure if qt auto deletes it because its not a child of something :confused:
If i do need to delete it, where do i do it? I could do it in the destructor of my main window, but is there any point if the program terminates there anyway?
Thanks,
Jack