blob: 60c26ac4f2626619523630d46ed655ff4c230616 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import QtQuick 1.0
import Qt.test 1.0
import "scarceResourceTest.js" as ScarceResourceProviderJs
// Here we import a scarce resource directly, from JS module.
// It is not preserved or released manually, so it should be
// automatically released once evaluation of the binding
// is complete.
QtObject {
property MyScarceResourceObject a;
a: MyScarceResourceObject { id: scarceResourceProvider }
property variant scarceResourceCopy: ScarceResourceProviderJs.importScarceResource(scarceResourceProvider)
}
|