Is it possible to have executable code as part of a model element? In a 
hypothetical Scheme based QML I could create a list model that contains 
<string, procedure> pairs, and then in a list view a delegate could 
simply call the procedure:

(define file-menu
   (list
       (list "Save"
              (lambda () (save-file)))  ; executable code
       (list "Quit"
              (lambda () (quit))))

Does QML allow something like this, or is there some other convenient 
way to glue together e.g. labels and actions?
-- 
Pertti

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

Reply via email to