Hi,

I have a single QWidget that is defined and showed in the process' main function, like this:
Qt Code:
  1. // main.cpp
  2.  
  3. #include "main.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication application(argc, argv);
  8. clsWindowMain windowMain();
  9. windowMain.showMaximized();
  10.  
  11. int ret = application.exec();
  12.  
  13. delete(settings);
  14. return ret;
  15. }
To copy to clipboard, switch view to plain text mode 

When I run the program and close the QWidget by mouse click, the whole process terminates.

BUT: When I create a button that should manually close the QWidget like this:
Qt Code:
  1. void clsWindowMain::slotButtonClicked()
  2. {
  3. this->close();
  4. }
To copy to clipboard, switch view to plain text mode 
... then the QWidget also closes, but the process is still working in background. I can see it when I open the process manager in windows and I can see it when I try to re-run the program...

Does anybody have a clue why it is not working?

Thank you in anticipation!