Quote Originally Posted by metdos View Post
I have a program which instantiates and uses another class (subclass of Qwidget) . When I closed the widget, program does not terminate, how can I also terminate main function?

means u want to terminate the whole application ...
use qApp->quit();