PDA

View Full Version : what is the difference between makin a plugin into a QML Component vs property & item



balisingh
27th August 2012, 06:25
e.g. between
1. QML Component:
PluginModel
{
ID: PluginClassHandle
}

2. Property declared inside a another QML component:
Menu {
property PluginModel Item: PluginModel { }
}

spirit
27th August 2012, 06:30
Think about these two cases like global variable (case 1) and incapsulated member (case 2).

balisingh
27th August 2012, 18:41
So that property (case 2) will only exist while inside that Menu Item or some higher parent member?

spirit
27th August 2012, 18:43
It's a child of Menu object.

balisingh
27th August 2012, 19:27
Thanks a lot.
BTW, i love using TrailHead. There is a little bug on the N9, in fullscreen mode if you go into view a picture while tracking a trail, you cant exit out of it.