Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.7.1
-
None
Description
When using the Scale transform, Text elements handle rendering of text in a nice way (taking advantage of the extra pixels). In comparison, the TextEdit element does not do this.
A simple example that clearly shows the effect follows. I have also attached a screenshot of what it looks like on my system.
import QtQuick 1.0 Rectangle { property real displayScaling id: screen displayScaling: 3 width: 160*displayScaling; height: 160*displayScaling transform: Scale { xScale: displayScaling yScale: displayScaling } Text { x: 0 y: 0 width: 160 height: 80 font.pixelSize: 11 text: "Here is some text that is in a Text element. Notice how it is smoothly rendered." wrapMode: Text.Wrap } TextEdit { x: 0 y: 80 width: 160 height: 80 font.pixelSize: 11 text: "Here is some text that is in a TextEdit element. Notice how it is not smoothly rendered." wrapMode: TextEdit.Wrap } }