[Prev: Comments] [Home] [Next: Built-in Types and Objects]
A Qt Script file can be added to a project using QSA Workbench.
For example, if the Brick class is defined in Brick.qs, and Brick.qs is added to a project with QSA Workbench, brick objects can be created like this:
var b = new Brick();
Note that since Brick.qs has been added to the project, there is no need to qualify the class name.