[Qt-interest] Use of System Tray on Mac

Darryl Hunter darryl.hunter at codersoft.com.au
Sat Feb 12 00:23:07 CET 2011


Hi all,

 

I'm developing an application that runs on the Mac and on Windows.  The
application has a system tray icon, which can launch the main application
(as well as notify of updates, etc).

 

On Windows everything works as expected.

 

On the Mac, I'm seeing a few things which, from what I've seen on the Mac,
aren't consistent with the "expected" behaviour.  The System Tracy Icon - I
want an icon that appears up the top (like Growl, battery level, wireless
activity, etc).  I got my icon there, but there are 2 problems with it.

1.       It also appears in the Dock (down the bottom).  I don't see this
with any of the other applications in the "system tray" (if that's the
correct term for the area up the top right on the Mac).

2.       This could be related to 1, but when I start the application, it
has an application menu.

 

Does anybody else find this contradicting normal Mac behaviour?  Have I done
something wrong, or do I not understand how the System Tray is meant to work
on the Mac?  At the moment, when my application is running, I have 2 icons
in the Dock for it (one for the system tray, and one for the main
application).

 

Note you can see this behaviour from the systray example.  The *problem* (if
that is what it is) has been around for a long time, but is still there with
Qt 4.7.1.

 

Thanks for any and all advice.

 

Darryl

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110212/85e33b37/attachment.html 


More information about the Qt-interest-old mailing list