QSystemTrayIcon[SOLVED]



  • 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):
    yourApp.setQuitOnLastWindowClosed(false);

    (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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.