[Interest] [SOLVED] QSystemTrayIcon under OS X

Bob Hood bhood2 at comcast.net
Wed Jan 27 04:51:00 CET 2016


Found it.  Need to add:

      <key>LSUIElement</key>
      <true/>

to the Info.plist for the application, and it hides the launcher presence and 
the system menu.  The task tray icon still displays.


On 1/26/2016 3:18 PM, Bob Hood wrote:
> Hey, guys.
>
> I have a small "helper" Qt application that just adds an icon to the Windows 
> task tray, and manages the life cycle of a process intended to run in the 
> background.  This "helper" is just a convenient interface for the user.  It 
> works fine under Windows. Appears in the task tray, provides a context menu, 
> has no main window or other presence on the desktop.
>
> This same code under OS X shows the icon in the OS X equivalent of the task 
> try along with the context menu. However, it also shows an entry in the 
> launcher at the bottom, and provides a second "standard" menu with 
> "standard" menu options (i.e., options I did not create).
>
> Whats the best way to hide these unneeded and unwanted extra items (launcher 
> presence and system menu) so the behavior is consistent between the platforms?
>
> Thanks.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>




More information about the Interest mailing list