A string containing the root path of the project.


Every path to every file defined in any node in a given project can be given as an absolute path, or a relative path. If it is a relative path, it will be evaluated relative to the projectRootPath.

By default, the projectRootPath is the location of the project's qmlproject file. This property accepts absolute paths, and also paths relative to the original root path.


This property is accepted in the main application .qmlproject file, or a module .qmlproject file. It takes a string.

Code example:

// file qmlprojects/project.qmlproject
Project {
    projectRootPath: ".."


This property was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.