[Prev: Comments] [Home] [Next: Built-in Types and Objects]

Adding Modules to a Project

A Qt Script file can be added to a project using Qt Script for Applications Developer.

For example, if the Brick class is defined in Brick.qs, and Brick.qs is added to a project with Qt Script for Applications Developer, 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.

[Prev: Comments] [Home] [Next: Built-in Types and Objects]