blob: 9175ba0a670f73625e92f5c30fab4236ad266497 (
plain)
1
2
3
4
5
6
7
|
export function withProp(root) {
const prefix = Qt.platform.os == "android" ? "qrc:" : "";
const component = Qt.createComponent(prefix + "data/jsmodule/Dynamic.qml");
const el = component.createObject(root, { value: 42 });
return el.value;
}
|