|Home | Tutorial | Classes | Functions | Qt Scripter | Language | Library | Qt API | QSA Articles | Qt Script for Applications | ![]() |
[Prev: Comments] [Home] [Next: Built-in Types and Objects]
A Qt Script file can be added to a project using Qt Scripter.
For example, if the Brick class is defined in Brick.qs, and Brick.qs is added to a project with Qt Scripter, 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]
Copyright © 2001-2003 Trolltech | Trademarks | QSA version 1.0.0-beta2
|