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

QSystemTrayIcon sends too large pixmap over Dbus if HiDPI scaling is enabled

    XMLWordPrintable

Details

    • Linux/X11

    Description

      The Dbus backend for QSystemTrayIcon sends a pixmap with the correct sizes (22px and 64px) if HiDPI scaling is disabled. However, if AA_EnableHighDpiScaling is set, pixmaps are sent at 512px, regardless of the original icon size, resulting in large overhead. In my case, the icon is loaded from the platform's icon theme and is a 16 x 16 px SVG file.

      On a related note, is it really necessary to send the pixmap over dbus if an icon is provided by the platform theme?

      Edit: When loading the SVG from the platform theme with QIcon.fromTheme, it is returned with a single available size of 128. When loading it from the file path directly, availableSizes returns an empty list and the above problem no longer occurs.

      Attachments

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              samschott Sam Schott
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes