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

SystemTrayIcon icon too big /squashed on second screen (Big Sur)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.11, 6.1.0
    • 5.15.1
    • GUI: High-DPI
    • None
    • macOS Big Sur 11.0.1 (20B29)
      MacBook Pro (16-inch, 2019)
    • macOS
    • a6aaa2b7071b7666a807b450dc5738742f3cc9e0 (qt/qtbase/dev) eaad8fe730f4af8605a39a9f3319c14ebd11626d (qt/qtbase/5.12) 30daefae4bfa598a8994324884edc972503d5876 (qt/qtbase/5.15)

      On macOS Big Sur, the SystemTrayIcon in the StatusBar is too big:

      On a second screen that is not the active one, the icon will get squashed:

       

      In `void QCocoaSystemTrayIcon::updateIcon(const QIcon &icon)` the devicePixelRatio is taken into account when creating the actual displayed image. This leads to the image being created with double the thickness of the NSStatusBar, which is not working anymore on macOS Big Sur.

      Using just the `non retina` 1x size, what means to apply an image that has the maximum height of the NSStatusBar, is working fine.

       

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

            vestbo Tor Arne Vestbø
            vjungbluth Victor Jungbluth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes