Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.0
-
None
-
Running Linux and Qt-kinetic repository
commit: d312514cc37394f24d7cd7d9d6c73435cddb5553
branch: declarativeui
-
d46c4d5d32a14ae119d88c59c00ebe62ae8ce027
Description
When a text item is too small for the text it contains, clipping occurs if clip is false, and does not happen when it is true.
Use example below to reproduce the issue.
==============================
import Qt 4.6
Rectangle {
id: "largeRect"
color: "blue"
opacity: 1
Rectangle
{ id: "smallRect" width: parent.width / 2 height: parent.height / 2 anchors.centerIn: parent color: "red" opacity: 0.5 }Text
{ id: "text" //////////////////////////////// // Test: Text is NOT clipped clip: true //////////////////////////////// //////////////////////////////// // Test: Text IS clipped // clip: false //////////////////////////////// anchors.fill: smallRect font.bold: true font.pointSize: 20 color: "white" text: "The quick brown fox jumps over the lazy dog" }}
==============================