Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
QDS 4.0
-
None
Description
Design Studio from staging installer (rev 62334c2b7a) on Windows 10.
Steps to reproduce:
- Create a new Qt for MCUs project (Width 800, Height 600)
- Drag and drop a Rectangle in the canvas
- Layout > Set Anchor component vertically and horizontally
- Make the Text item a child of the Rectangle item by drag and drop in the Navigator Pane
In the Code view the Text item has now x: 46, y: 93
Text {
x: 46
y: 93
text: qsTr("Hello UntitledProject2")
anchors.centerIn: parent
}
While the preview shows the Text item as centered in the Rectangle, when running the QML code in QtCreator or on MCU via qmlprojectexporter the Text item is not centered in its parent.