Congratulations to our 2022 Qt Champions!


  • Hello.

    The problem occurs after the application is minimized to the system tray: If I close the message box, that app show me, the app will be closed too(I used a QSystemTrayIcon -example from this site). Where can be a problem?

    Thank you for answers beforehand.

  • This is required in main.cpp (after QApplication definition):

    (and your main class must be subclassed this way:
    class YourClass : public QSystemTrayIcon)

  • Thank you for your answer.

    Actually that one "yourApp.setQuitOnLastWindowClosed(false);" was enough.

Log in to reply