3 import "scarceResourceTest.variant.js" as ScarceResourceProviderJs
5 // Here we import a scarce resource directly, from JS module.
6 // It is not preserved or released manually, so it should be
7 // automatically released once evaluation of the binding
11 property MyScarceResourceObject a;
12 a: MyScarceResourceObject { id: scarceResourceProvider }
13 property variant scarceResourceCopy: ScarceResourceProviderJs.importScarceResource(scarceResourceProvider)