Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
Qt Creator 3.1.0-rc1
-
None
-
Windows 7 64 bit
Description
- Create a new Qt Quick Application project.
- Open the project's QML file.
It contains:Text { text: qsTr("Hello World") anchors.centerIn: parent }
- Switch to Design mode.
- Move the Text item using drag and drop.
- Switch back to Edit mode.
The QML file now contains something like:Text { x: 236 y: 141 text: qsTr("Hello World") anchors.verticalCenterOffset: -92 anchors.horizontalCenterOffset: -57 anchors.centerIn: parent }
What's the point of having x and y properties when the position is determined by the anchors properties?
Either use x/y or the anchors, but don't use both.