in main create the widget on the stack, then it will be deleted when you leave the scope. Since Qt uses pimpl the main part of the object is allocated dynamically. but if you want to create your main window on the heap use:Qt Code:
int returnValue = app.exec(); delete widget; return returnValue;To copy to clipboard, switch view to plain text mode
Bookmarks