>>46
close()とdeleteは違う。

http://doc.trolltech.com/3.0/qwidget.html#close-2

The QApplication::lastWindowClosed() signal is emitted when the last visible top level widget is closed.
Note that closing the QApplication::mainWidget() terminates the application.

× デクスラクタ
○ デストラクタ