1 2 3 4 5 6 7
import Qt 4.7 //![0] import "myscript.js" as Script Rectangle { color: "blue"; width: Script.calculateWidth(parent) } //![0]