yeh, it wont make any difference, just that it being virtual here didnt make any sense..about your dialog, looking at the code, i m pretty sure that the destructor would be called when the MainWindow is deleted.