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 and Context menu
Forum Updated to NodeBB v4.3 + New Features

QSystemTrayIcon and Context menu

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 3.1k 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.
  • T Offline
    T Offline
    tobben24
    wrote on last edited by
    #1

    Hi,

    Is there any way to easily hide/close the context menu when mouse button is clicked anywhere else?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      At least on the Mac the menu hides automatically when clicking outside. I would say this holds true for Windows and Linux too, but I would have to check this to be 100% sure.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobben24
        wrote on last edited by
        #3

        It does not do that on Windows 7 or Xp. At least on my two laptops:)

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          [quote author="tobben24" date="1323693790"]It does not do that on Windows 7 or Xp. At least on my two laptops:) [/quote]

          Just checked, and I can confirm this. The menu hides on clicking into a window of its parent application, but it does not hide on clicking into another window or on the desktop.

          I would consider this a bug. Do you mind opening a new issue on the "public bugtracker":https://bugreports.qt.nokia.com and reporting back the issue id here?

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • K Offline
            K Offline
            KA51O
            wrote on last edited by
            #5

            It does on XP and Windows 7. We are talking about the context menu, right? Opens up if you right-click?

            Edit: Have to test the case Volker mentioned.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobben24
              wrote on last edited by
              #6

              QTBUG-23100

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobben24
                wrote on last edited by
                #7

                Its the context menu, which open up correctly on right click. It works as it should except the case I described above.

                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