Thank you for the reply!
Yes, I read that clicking [x] button merely hides the window and I thought Qt::WA_DeleteOnClose should destroy the window when the call returns to the event loop. The problem is that it is not happening, I run exactly the same example as linked above from the Qt Docs (I only added that debug destructor). And yes, the windows are allocated on the heap:
MainWindow *mainWin = new MainWindow;
MainWindow *mainWin = new MainWindow;
To copy to clipboard, switch view to plain text mode
I'm running Mac OS 10.8 and Qt 5.
I also tried to run the example in Qt 4.8 under Linux and it works. Could this be a bug on Mac? Can someone please confirm it?
Thank you for the reply!
Yes, I read that clicking [x] button merely hides the window and I thought Qt::WA_DeleteOnClose should destroy the window when the call returns to the event loop. The problem is that it is not happening, I run exactly the same example as linked above from the Qt Docs (I only added that debug destructor). And yes, the windows are allocated on the heap:
MainWindow *mainWin = new MainWindow;
MainWindow *mainWin = new MainWindow;
To copy to clipboard, switch view to plain text mode
I'm running Mac OS 10.8 and Qt 5.
I also tried to run the example in Qt 4.8 under Linux and it works. Could this be a bug on Mac? Can someone please confirm it?
Added after 7 minutes:
Please find the attached example bellow.
SDI.zip
Bookmarks