C
InterfaceFiles.MCU.includeStdHeaders
qmlinterfacegenerator
includes the standard library headers shipped with Qt Quick Ultralite when processing the interface header files of an application.
Description
qmlinterfacegenerator
includes the standard library headers that are shipped with Qt Quick Ultralite if this property is true
. You can avoid including the headers by setting the property to false
. This enables you to choose specific standard library headers to include.
Add include paths to the target of qul_add_target using CMake APIs. See Usage of qmlprojectexporter in a CMake project for more information. Add include paths using --include-dirs when using standalone qmlprojectexporter
. See Using standalone qmlprojectexporter for more information.
Warning: If you set this property to false
, make sure to set the correct include paths using one of the aforementioned methods. Otherwise, qmlinterfacegenerator
may fail while processing the interface files.
Usage
This property is accepted in the main application .qmlproject
file, or a module .qmlproject
file. It takes a boolean value, and the default value is true
.
Code example:
Sets the property for every InterfaceFiles node in the project
MCU.Config { includeStdHeaders: false }
Sets the property for a specific InterfaceFiles node in the project.
InterfaceFiles { MCU.includeStdHeaders: false }
See also Integrating C++ code with QML.
Available under certain Qt licenses.
Find out more.