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

OSX: QSystemTrayIcon menu doesn't appear

XMLWordPrintable

    • macOS

      Any use of context menu on a QSystemTrayIcon with Qt 5.8 beta or newer (old git clone of 5.8 doesn't have this issue) doesn't display any menu when clicking on the system tray icon on OS X 10.12.1 Sierra.

      The system tray icon appears, but clicking it with left or right mouse button doesn't display the menu or the menu actions.

      I tested with both Qt 5.8 branch from git and 5.8 beta. I didn't have this issue/bug with an earlier git clone of 5.8 branch (from a few months or so ago).

      Since the systemtray demo/example doesn't put a context menu on the systemtray icon I've attached a small sample project that shows a QSystemTrayIcon with a menu. This works fine with Qt 5.7 (with patched qmake so it can build) and doesn't show the menu with Qt 5.8 bulit from git or 5.8.0 beta.

        For Gerrit Dashboard: QTBUG-57365
        # Subject Branch Project Status CR V

            vestbo Tor Arne Vestbø
            jpwhiting Jeremy Whiting
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes