C

app_target_default_main

Adds a minimal main.cpp to target

Synopsis

app_target_default_main(<target> <item>)

Description

Adds a minimal main.cpp to target that launches Qt Quick Ultralite using item as the application's root item.

The main.cpp template depends on the OS variable value. The valid values are:

  • "Baremetal"
  • "FreeRTOS"

Note: This is a convenience command, meant to be used for executable targets only. You can also write your own main() function instead.

Since

This command was introduced in Qt Quick Ultralite 1.2.

See also Entry point to Qt Quick Ultralite application and QUL_OS.

Available under certain Qt licenses.
Find out more.