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

QQuickPaintedItem draws poorly on Retina displays, contains no support for 2x devicePixelRatio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.0
    • Fix Version/s: 5.6.0
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      Mac OS Mavericks with Retina display (MacBookPro 13"), iOS (iPad mini Retina)
    • Commits:
      0c7349fa9621f6460b754c2b3595d1c0f1d02ec4

      Description

      QQuickPaintedItem draws poorly on Retina displays due to lack of support for 2x devicePixelRatio. The result is fuzzy draw.

      Please see the attached files for examples of the fuzzy draw in comparison with and an improved draw using a provisional fix implemented by a colleague. Also, the provisional fix to qsgpainternode.cpp is attached.

      BTW, our application contains a mix of QtQuick/QML and some additional classes which implement graphs which inherit from QQuickPaintedItem. We need QQuickPaintedItems to draw well on Retina displays, because our customers' target device may often be an iPad (3 or 4 current iPad models ship with Retina displays as stock) or MacBook Pro with Retina display (2 of 3 current MacBook Pro models ship with Retina display as stock).

        Attachments

        1. QPaintedItem_3BandEQ.png
          QPaintedItem_3BandEQ.png
          176 kB
        2. QPaintedItem_EG.png
          QPaintedItem_EG.png
          153 kB
        3. QPaintedItem_Filter.png
          QPaintedItem_Filter.png
          122 kB
        4. qsgpainternode.cpp.patch
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              sletta Gunnar Sletta
              Reporter:
              vstevenp Steve Pavao
            • Votes:
              10 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes