[Qt-interest] System tray context menu

Tony Thompson Tony.Thompson at stone-ware.com
Mon Apr 20 18:10:04 CEST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090420/ae3f5d8d/attachment.html 


More information about the Qt-interest-old mailing list