Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
None
-
f67ba78760602642bd947abed261e84dadb9cfdf
Description
When items are drawn across pixel boundaries they go blurry. When a ListView comes to rest is should stop on an exact pixel (integer). Currently they are able to come to a stop on float and some parts can become blurry. (At least on the Mac?)
import QtQuick 2.0 Rectangle { width: 800 height: 400 Rectangle { id: rect x: 500 y: 80 width: 20 height: 20 color: "pink" } ListView { width: 400 height: 400 model: 100 delegate: Rectangle { id: innerRect width: 400 height: 50 color: index % 2 ? "grey" : "darkgrey" Rectangle { width: 400 height: 1 color: "black" y: 25 } MouseArea { id: mouse anchors.fill: parent onClicked: print(innerRect.mapToItem(rect).y) } } } }