More simple questions about idiomatic ways of doing things in QML...

Let's say I have a Menu element with property menuItems, which I want to 
use as follows:

     Menu { menuItems: [ MenuItem { label: "a"}, MenuItem { label: "b" } ] }

I want each MenuItem to have an attached property provided by Menu. Do I 
just write a javascript loop in Menu's onMenuItemsChanged handler to 
iterate over the menuItems list, or is there some more concise way to 
express this in QML?
-- 
Pertti

_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to