require(identifier: string): any
var MyFunctions = require("./myfunctions.js"); MyFunctions.doSomething(); var FileInfo = require("qbs.FileInfo"); var fileName = FileInfo.fileName(filePath);
Array.containsAll(other: any): boolean
true if the array contains every element in the
other array. Returns
Array.containsAny(other: any): boolean
true if the array contains some element(s) in the
other array. Returns
Array.uniqueConcat(other: any): any
Returns a copy of this array joined with the array
other. Duplicates that would originate from the concatenation are removed. The order of elements is preserved.
Qbs provides a subset of the non-standard Console API available in most ECMAScript runtimes.
The output of each of these functions will only be displayed if the logging level is at least the level which the function outputs at. Logging levels from lowest to highest are: 'error', 'warning', 'info', 'debug', and 'trace'. The default is 'info'.
console.debug(s: string): void
This method is an alias for
console.error(s: string): void
error level message. Outputs to stderr when the logger output is a terminal. The string will be prefixed with
"ERROR: " and colored red when the logger output is a color-capable terminal.
console.info(s: string): void
info level message. Outputs to stdout when the logger output is a terminal.
console.log(s: string): void
debug level message. Outputs to stderr when the logger output is a terminal.
console.warn(s: string): void
warning level message. Outputs to stderr when the logger output is a terminal. The string will be prefixed with
"WARNING: " and colored yellow when the logger output is a color-capable terminal.
© 2022 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.