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

system tray icons in Windows 10 goes blurry

    XMLWordPrintable

Details

    • Windows
    • 635b8e88e (tqtc/lts-6.2), 49d6a259c (6.4), 9bc36308c (dev)

    Description

      This turns out to be  a well known issue with system tray icons in Windows 10/11, where a resolution/DPI change results in the system tray icon becoming blurry. This can easily be reproduced with Qts systray example with screen, resolution 3840*2160 with 250% scaling.

      This is not Qt specific issue but this can be solved by hooking the WindowProc of the system tray icon, and reloading the icon when the TaskBarCreated message is received.

      Attached simple code for this.

      Attachments

        1. qt_tray_blurry_fix.txt
          0.6 kB
        2. tray_blurry.png
          tray_blurry.png
          74 kB
        3. tray_ok.png
          tray_ok.png
          70 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes