Quote Originally Posted by jpn
Check this post.
WA-attributes are usefull, bit don't work. I have overloaded closeEvent() this way:

QMainWindow::closeEvent(event);
QApplication::exit();

It works.