I have a simple Mac Qt application that subclasses QMainWindow. It works really well except when I restart the Mac before quitting the application. The application does quit, as expected, however it always cancels the restart before quitting. I noticed this also happens with all the Qt Mac example application I have tried.

Is there any way to suppress this behavior, so Qt application quits without canceling the restart? Thanks in advance.

-Stan