Home · Overviews · Reference · Classes codeless banner

path()

Usage

    foo=$$path(foo.cpp,project)

Description

The path() function takes 2 arguments. A filename and an enum that tells it where to look.

The locations that can be searched are:

Note that files specified with project must exist.

    foo=$$path(foo,project)
    isEmpty(foo):message(foo does not exist in the project directory!)

You can use named solutions too.

    foo=$$path(QtopiaSdk:/bin/qbuild,generated)

See also QBuild Functions and QBuild Script.


Copyright © 2009 Nokia
Qt Extended - QBuild Maintainer Guide