1 2 3 4 5 6 7 8 9 10
import QtQuick 2.0 import "importModuleApi.js" as Script Item { property variant testValue: 5 Component.onCompleted: { testValue = Script.testFunc(); } }