I have a python list which I wanto to expose to QML along with other
properties of a QObject.

>From QML I can access all other "basic types" properties, but when I try to
do anything with the python list, It doesn't work.
Let's say my QObject is exposed as "myObj" to QML and "myList" is the
property which holds the python list, neither looping through its elements:

for (var i = 0;i<myObj.myList.length;i++) {}

nor accessing a random element directly:

Text {text: myObj.myList[1]}

are working (the latter causing the error "Unable to assign [undefined] to
QString text").

How am I supposed to do this?

-- 
Luca Donaggio
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to