QSystemTrayIcon and Context menu
-
Hi,
Is there any way to easily hide/close the context menu when mouse button is clicked anywhere else?
-
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.
-
It does not do that on Windows 7 or Xp. At least on my two laptops:)
-
[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?
-
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.
-
QTBUG-23100
-
Its the context menu, which open up correctly on right click. It works as it should except the case I described above.