C

--generate-entrypoint

Controls if qmlprojectexporter generates a default application entry-point

Description

Use this option to tell qmlprojectexporter that it should generate the application's default entry point based on a .qml file.

An entrypoint refers most importantly to main.cpp if the application is executable or qul_run.h if you are targeting a project that will use the generated Qt for MCUs application as a static library. You can configure which entrypoint type to generate using --target-type.

If you don't specify this option, you must manually add the custom entrypoint sources to the project.

See Qul::Application for details on how to configure a custom entrypoint.

Usage

qmlprojectexporter --generate-entypoint --target-type static_library --outdir output-dir my_project.qmlproject

Since

This option was introduced in QmlProject API 1.3 .

See also --target-type, Project.mainFile, and GENERATE_ENTRYPOINT.

Available under certain Qt licenses.
Find out more.