Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.64 KB | None | 0 0
  1. import myStuff 1.0 as MS //
  2.  
  3. ApplicationWindow {
  4.     MS.PluginHost { // Internally has a map/dictionary of "name" -> Item. The registered items
  5.         id: pluginHost
  6.         MS.PluginBootstrapper {
  7.             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.
  8.         }
  9.     }
  10.     MS.A { } // Does not register itself to the pluginHost
  11.     MS.B {
  12.         id: b
  13.         Component.onCompleted: pluginHost.register("b", b)
  14.     }
  15.     MS.C { } // Does not register itself to the pluginHost
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement