Hi,

If i have this code to start up a dialog from my main window:

Qt Code:
  1. GoQueueInfoDlg *dlg = new GoQueueInfoDlg(this, qu);
  2. dlg->show();
To copy to clipboard, switch view to plain text mode 

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

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