C

Project.projectRootPath

A string containing the root path of the project.

Description

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.

Usage

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

Since

This property was introduced in QmlProject API 1.3 .

Available under certain Qt licenses.
Find out more.