TheIndependentAquarius
11th June 2014, 12:02
Alias.qml
import QtQuick 2.0
Rectangle {
width: 100
height: 62
property var arr : [1,2,3,4]
}
Access.qml
import QtQuick 2.0
Rectangle {
id: newq
width: 100
height: 62
property var yy : [1]
property var pp : [1]
onPpChanged:
{
console.log("\npp: " + pp.pop())
console.log("\nyy: " + newq.yy.length + "\n")
}
}
main.qml
import QtQuick 2.0
Rectangle {
id: root
width: 360
height: 360
Alias
{
id: poi
}
Access
{
pp: poi.arr
}
}
The error shows up on this line:
console.log("\nyy: " + newq.yy.length + "\n")
Where am I going wrong?
import QtQuick 2.0
Rectangle {
width: 100
height: 62
property var arr : [1,2,3,4]
}
Access.qml
import QtQuick 2.0
Rectangle {
id: newq
width: 100
height: 62
property var yy : [1]
property var pp : [1]
onPpChanged:
{
console.log("\npp: " + pp.pop())
console.log("\nyy: " + newq.yy.length + "\n")
}
}
main.qml
import QtQuick 2.0
Rectangle {
id: root
width: 360
height: 360
Alias
{
id: poi
}
Access
{
pp: poi.arr
}
}
The error shows up on this line:
console.log("\nyy: " + newq.yy.length + "\n")
Where am I going wrong?