Even if it's possible, this is not really necessary. I think I prefer the javascript declaration instead of QML. What about you?