Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt for MCUs 2.7, Qt fo MCUs 2.5.2, Qt for MCUs 2.6.1
-
0f76b3f7, 5793ed46, a0e954fe.
Description
qmltocpp crashes when one has inline component which has anchor property declared and it is binding to its parent.
Arguably this is considered bad practice for a component to refer to its parent but this works in normal Qt and we cannot allow qmltocpp to crash.
Snippet which reproduces the issue:
import QtQuick Rectangle { id: myWindow height: 800 width: 472 color: "pink" component Comp : Rectangle { //commenting out the anchoring below will make the build to pass anchors.centerIn: parent width: 100 height: 100 color: "purple" } Comp{ //doing the anchoring within the component works and can be used as a workaround anchors.centerIn: parent } }