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

[xcb][eglfs][wayland] QCursor does not support hidpi pixmaps

    XMLWordPrintable

Details

    Description

      On the cocoa and windows platforms a QCursor's hotspot coordinates are given in device-independent pixels and it's pixmap is scaled according to it's devicePixelRatio.

      On the xcb, wayland, and eglfs platforms a QCursor's hotspot coordinates are in physical pixels and it's pixmap's devicePixelRatio is ignored.

      It would be cool if the behavior was consistent across platforms.

      Attached example works as expected on Windows (cursor is scaled and hotspot is always in the middle) but not Linux/X11 (cursor is not scaled or hotspot is incorrect).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-68571
          # Subject Branch Project Status CR V

          Activity

            People

              liaqi Liang Qi
              juri.valdmann Jüri Valdmann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change