Suppose I have model with items like this:

ListItem { x : 1; y: 2 }

And I need a model with items like this:

ListItem { z : 1 + 2 }

What should I do? My gut tells me that it's not possible in a clean
way, but I hope to be proven wrong :).

Actually, my *real* need is more mundane - I want to rename a property
on-fly. But as at excercise in learning to 'map' QML conpects to stuff
you've got to know in other languages (here, "list comprehension" from
python or haskell comes to mind), I thought I'd throw this here.

-- 
Ville M. Vainio @@ Forum Nokia
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to