Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSystemTrayIcon[SOLVED]

QSystemTrayIcon[SOLVED]

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dmitrij
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      broadpeak
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dmitrij
        wrote on last edited by
        #3

        Thank you for your answer.

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved