Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.14.2
-
None
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
- resulted from
-
QTBUG-31762 [REG] XCB: QSystemTrayIcon creates an icon in the wrong place.
- Closed
-
QTBUG-4011 Add support for native notification systems.
- Reported