List of Built-in Services

Qbs provides the following built-in JavaScript extensions to simplify operations that are expected to be needed often in project files.

To gain access to the operations provided by a particular Service - for example, the File service - use the following statement at the top of your Qbs project file:

import qbs.File

If you instead need to access the service from a JavaScript file, import it using the following statement at the top of your JavaScript file:

var File = require("qbs.File");

BinaryFile Service

Provides read and write operations on binary files.

Environment Service

Provides operations on the system environment.

File Service

Provides operations on the file system.

FileInfo Service

Provides operations on file paths.

General Services

Provides various operations.

Host Service

Provides host information.

Process Service

Allows you to start external processes.

PropertyList Service

Provides read, write and convert operations on property list files.

TemporaryDir Service

Creates a unique directory for temporary use.

TextFile Service

Provides read and write operations on text files.

Utilities Service

Provides miscellaneous operations.

Xml Service

Provides a DOM parser and generator to JavaScript.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.