import Qt 4.6 //![0] import "myscript.js" as Script Rectangle { color: "blue"; width: Script.calculateWidth(parent) } //![0]