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. Tray menu is not getting hide.
QtWS25 Last Chance

Tray menu is not getting hide.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.5k Views
  • 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.
  • M Offline
    M Offline
    mady
    wrote on last edited by
    #1

    Hi,
    My application has a tray menu when I am clicking on it, it is visible but when I am clicking to any other application it is not getting disappeared as happening with other application's tray menu. It seems I have missed some thing for sure, mmmm..... but what?

    I looked into QSystemTrayIcon class but did not get anything related to this issue.

    I tried example given here for "Traymenu", that is working fine. I followed the same with few things here and there but did not help.
    Please let me know if specific I need to set to get the expected behavior.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      The QSystemTrayIcon is not supposed to hide when losing focus. Are we talking about the Windows-specific feature to hide unwanted system tray icons here? If so, you will need some Windows-specific code to add your application to the list of auto-hidden tray icons. This is beyond the scope of Qt.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mady
        wrote on last edited by
        #3

        Thanks for you quick response.
        If that is the case then how example given for "System Tray Icon":http://doc.qt.nokia.com/4.7/desktop-systray.html is working?

        [EDIT: fixed link, Volker]

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          I think the question is: why does your application not work as Windows - at least as far as I know - automatically hides new system tray icons. To be honest I don't know how Windows decides which icon is displayed and which not. Are the any active bubbles, context menus or notifications that might keep the icon "active"?

          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