Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
In the code below, when entering state 2, pointSize is set to 80 but then its pixelSize is immediately set back to 25.
import QtQuick 2.0 Item { id: main height: 640; width: 360 Text { id: label text: "hello world" font.pointSize: 25 } states: [ State { name: "1" PropertyChanges { target: label; font.pixelSize: 10 } }, State { name: "2" PropertyChanges { target: label; font.pointSize: 80 } } ] MouseArea { anchors.fill: parent onClicked: { if (main.state == "") main.state = "1" else if (main.state == "1") main.state = "2" else main.state = "" } } }
Attachments
Issue Links
- resulted from
-
QTBUG-19848 Regression: changes to Text element properties break further changes to font
-
- Closed
-