[Qt-interest] System tray context menu
Tony Thompson
Tony.Thompson at stone-ware.com
Tue Apr 21 16:54:58 CEST 2009
Does anyone understand how a context menu is supposed to behave on a
system tray icon with Windows? I have tried building my menu different
ways (maybe not the right way) and searching the list archives and still
have no idea what the issue could be here. Is this a bug?
________________________________
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Tony Thompson
Sent: Monday, April 20, 2009 12:10 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] System tray context menu
I have an application that is using a system tray icon with a context
menu. On Windows, when I right click the system tray icon, I have a
menu organized like this:
Menu 1
Menu 2
+ Menu 1a
+ Action 1a1
+ Menu 1b
+ Menu ...
+ Action 1a
Separator
Action 1
Action 2
If I mouse over "Menu 2", the menu under it automatically pops open.
>From Menu 2, if I mouse over "Menu 1a", nothing. But, if I right click
Menu 1a, the next menu level pops open and I can see "Action 1a1". On
the Mac, my code works as I would expect (I can just mouse over the next
menu level and it opens). Why is it different on Windows and how might
I fix it?
A little more info...Menu 2 is my own class derived from QMenu. Menu 1a
is just a QMenu (menu1a = new QMenu( <ptr_to_Menu2> );).
Thanks for any help.
Tony
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.
More information about the Qt-interest-old
mailing list