|Home | Tutorial | Classes | Functions | QSA Developer | Language | Library | Qt API | QSA Articles Qt Script for Applications

[Prev: arguments] [Home] [Next: Built-in Constants]

Application.argv

This is an Array variable which holds an ordered list of the command line arguments that were passed to the application (if any). Application.argv[0] is the name of the application, as passed to the Qt Script for Applications interpreter; any remaining arguments are in Application.argv[1] onwards.

For Qt Script for Applications, Application.argv[0] is the name of the C++ application which is scriptable using Qt Script for Applications and the other arguments are those which were passed to the Qt/C++ on the command line.

Example

    function main()
    {
        for ( var i = 1; i < Application.argv.length; i++ ) {
            debug( Application.argv[i] );
        }
    }

[Prev: arguments] [Home] [Next: Built-in Constants]


Copyright © 2001-2003 TrolltechTrademarks
QSA version 1.0.0-beta2