Hello.

I have an app that can have a number of info windows. I create them using:
Qt Code:
  1. CInfoWnd* wnd = new CInfoWnd( main_wnd );
  2. wnd->show();
To copy to clipboard, switch view to plain text mode 

But since they are automatically deleted only after they parent object is deleted (main window), they remain in meory even after user closes them. Si, if user constantly opens and closes info windows, memory is constantly leaking. What is a preffered way in Qt to dispose windows that are created via 'new'?