Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48676

QSystemTrayIcon is invisible in OS X 10.11 when menu is set to auto-hide

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • 5.6
    • 5.5.0
    • None
    • OS X 10.11
    • macOS
    •  30bff91c3920fdf92d81d42983e31e8d0766969f (gitweb)

    Description

      OS X 10.11 introduced a new feature for having the menu bar automatically show and hide. When this feature is enabled while creating a QSystemTrayIcon, the resultant icon in the menu bar will be blank and invisible.

      Looking into the source code, I think the problem is in qcocoasystemtrayicon.mm. In this circumstance the reported height of the menu bar using [[[NSApplication sharedApplication] mainMenu] menuBarHeight] will be 0 pixels, causing the icon to be resized down into oblivion.

      Attachments

        Issue Links

          Activity

            People

              sorvig Morten Sørvig
              guygizmo Brian Kendall
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: