I don't know how properly write program which will minimize instead close, and which do not prevent system from close (when I want restart system or shutdown). For now when my program is showed (window is visible for user) and I click close system, then closing system is break by my program and my program is minimized. I cant find out how to handle this special case when program should close instead minimize.... Please help me.


Reply With Quote
irectConnection for this signal as the documentation says) and rise some flag or send some custom event to your windows in order to let them know that when they receive closeEvent they must accept it.

Bookmarks