Qbs Manual

Qbs 1.12.1

# Qt.qml

Provides Qt QML support. More...

- List of all members, including inherited members

## Properties

- cacheFilesInstallDir : string
- cachingEnabled : bool
- generateCacheFiles : bool
- qmlCacheGenPath : string
- qmlImportScannerName : string
- qmlPath : string

## Detailed Description

The Qt.qml module provides support for the Qt QML module, which contains classes for QML and JavaScript languages.

Note: If the current value of qbs.architecture is not supported by `qmlcachegen`, the QML cache file generator rule is disabled.

### Relevant File Tags

Tag | Auto-tagged File Names | Since | Description
--- | --- | --- | ---
`"qt.qml.js"` | `*.js` | 1.10 | QML companion JavaScript files. Source files with this tag serve as input for the QML cache file generator.
`"qt.qml.qml"` | `*.qml` | 1.8 | Source files with this tag serve as inputs to the QML plugin scanner.

See also Qt.quick and Qt.declarative.

## Property Documentation

cacheFilesInstallDir : string

The path to the directory where the cache files are installed.

If this property is set, QML cache files are automatically installed.

Default: Undefined

[read-only] cachingEnabled : bool

This property is `true` if generateCacheFiles is `true` and the platform supports QML cache generation.

Default: `false`

generateCacheFiles : bool

Whether QML cache files are generated.

Default: `false`

qmlCacheGenPath : string

The absolute path to the `qmlcachegen` executable.

Default: Determined by setup-qt.

qmlImportScannerName : string

The base name of the QML import scanner.

Set this value if your system uses a name different from the default value.

Default: `"qmlimportscanner"`

qmlPath : string

The absolute path to the directory where Qt's QML files are installed.

Default: Determined by setup-qt.