You won't have a memory leak if you set the attribute such that the object is deleted once the messagebox is closed. You can do this by setting:
Qt Code:
msgBox->setAttribute(Qt::WA_DeleteOnClose);To copy to clipboard, switch view to plain text mode
Bookmarks