3 import "scarceResourceTest.var.js" as ScarceResourceProviderJs
5 // In this case, multiple scarce resource are explicity preserved
6 // and then explicitly destroyed, while others are automatically
7 // managed. Since none are manually preserved without subsequently
8 // being destroyed, after the evaluation of the binding the
9 // scarce resource should be detached.
12 property MyScarceResourceObject a;
13 a: MyScarceResourceObject { id: scarceResourceProvider }
14 property int scarceResourceTest: ScarceResourceProviderJs.importPreservedScarceResourceFromMultiple(scarceResourceProvider), 100