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

macOS 26 and QSystemTrayIcon

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.3
    • None
    • macOS

      Hi,

      On macOS 26 beta (up to beta 6 actually), our app icon did not show up in menu bar anymore. We actually have a bundle structure that contain 2 executable:

      myApp.app
        Contents
          MacOS
            myApp
            myApp_client 

      Executable `myApp_client` was in charge of the generation of the tray icon (using QSystemTrayIcon), but this did not work anymore in macOS beta from 1 to 5. However, moving the generation of the tray icon into the main executable worked.

      Since then, Apple released macOS 26 beta 6 and everything seems to work again as usual. But in the meantime, I was in chat with Apple support, and they pointed out the root cause of the issue might be Qt bypassing call to `NSApplicationMain`. You can find the discussion with Apple support engineers here: https://developer.apple.com/forums/thread/794920.

      Not sure if it's a bug or if this is even useful, but I just wanted to let you guys know about it.

      Regards

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mrznuk Clément Kunz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes