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

QCursor does not support hi-dpi (retina) resolution

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0 Beta1
    • 5.1.1, 5.2.0 Alpha
    • GUI: Painting
    • None
    • Mac OS X 10.8
    • 5334a2cea76473060b4f20aa8f1d5819bb03e6c4

    Description

      It is not possible to set hi-dpi QCursor. At the moment, the system always scales the cursor on a hi-dpi screen so it looks pixelated.

      There should be a way to use hi-dpi mouse cursors.

      I've tried this by setting a QCursor constructed from a QPixmap with device pixel ratio 2.0, but it did not work. The attached example has the code. The drawPixmap() method works correctly, but the setCursor() methods do not. I'd expect the cursor to have the same size as the painted pixmap.

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              kpihkala Kari Pihkala
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes