December 12, 2011

tobben24 tobben24
Lab Rat
9 posts

QSystemTrayIcon and Context menu

 

Hi,

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

6 replies

December 12, 2011

Volker Volker
Robot Herder
5428 posts

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.

December 12, 2011

tobben24 tobben24
Lab Rat
9 posts

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

December 12, 2011

Volker Volker
Robot Herder
5428 posts
tobben24 wrote:
It does not do that on Windows 7 or Xp. At least on my two laptops:)

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 [bugreports.qt.nokia.com] and reporting back the issue id here?

December 12, 2011

KA51O KA51O
Robot Herder
380 posts

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.

December 12, 2011

tobben24 tobben24
Lab Rat
9 posts

QTBUG-23100

December 12, 2011

tobben24 tobben24
Lab Rat
9 posts

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

 
  ‹‹ Editable QComboBox with empty edit text: Avoid automatic text change when model is modified      QSystemTrayIcon and relative path ››

You must log in to post a reply. Not a member yet? Register here!