Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import myStuff 1.0 as MS //
- ApplicationWindow {
- MS.PluginHost { // Internally has a map/dictionary of "name" -> Item. The registered items
- id: pluginHost
- MS.PluginBootstrapper {
- Component.onCompleted: bootstrapMyPlugins(pluginHost) // I want this to be done when all other Item's in the tree have registered to the pluginHost. But the order of Component.onCompleted is not guaranteed iirc, so I cannot know for sure that "b" is registered.
- }
- }
- MS.A { } // Does not register itself to the pluginHost
- MS.B {
- id: b
- Component.onCompleted: pluginHost.register("b", b)
- }
- MS.C { } // Does not register itself to the pluginHost
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement