Use of a control property causes [undefined]
-
I created a component that roughly looks like the following
Rectangle { property string title_label Item { RowLayout { Text { text: title_label } } } }
In my Visual Studio and MinGW builds this works perfectly. However when build it for Raspberry Pi with a Qt 5.3.3 I get an "Unable to assign [undefined] to QString" for the line 7.
When I replace that line with something ugly like this:
text: parent.parent.parent.title_label
then the issue vanishes. I also tried giving the top rectangle an id like 'root' and then refer to title_label using this id:
Rectangle { id: root ... ... text: root.title_label ...
But this also didn't solve the problem.
Can anyone tell where this could come from?
-
For me this issue is resolved now by using the newest Qt Version (I used the 5.5.0 branch) on the Raspberry Pi. It looks like it might have also been related to other issues on the RaspberryPi like http://forum.qt.io/topic/50854/raspberry-pi-and-stackview/2 or https://bugreports.qt.io/browse/QTBUG-44295 since I was also using the StackView control.