Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 4.9.2, Qt Creator 4.10.0-rc1
-
None
-
all
Description
When using this snippet, the template string disappear, after auto-formatting
Rectangle {
Rectangle {
id: rect
width: downloadProgressBar.visualPosition * parent.width
height: parent.height
radius: 2
color: "#17a81a"
Text {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: rect.horizontalCenter
text: `Downloading...${downloadProgressBar.value}`
}
}
}
After saving it becomes:
Rectangle {
Rectangle {
id: rect
width: downloadProgressBar.visualPosition * parent.width
height: parent.height
radius: 2
color: "#17a81a"
Text {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: rect.horizontalCenter
text:
}
}
}
It has to be inside another qml type