When you create a new Qt Quick project from scratch, you have the following options:
You can select a template that uses either the built-in QML elements or Qt Quick components for a particular platform. The built-in QML elements enable you to create cross-platform applications with a custom look and feel, whereas the components provide the look and feel for a particular platform.
The Qt Quick 1 Application wizard imports Qt Quick 1.1, and therefore, you can use it without changes to develop for platforms that run Qt 4.7.4 (such as MeeGo). To develop for platforms that run Qt 4.7.3 (such as Maemo), you must change the import statement to import Qt Quick 1.0.
The Qt Quick 2 Application wizard imports Qt Quick 2.0. Use it to develop for platforms that run Qt 5.
Select File > New File or Project > Applications > Qt Quick UI > Choose and follow the instructions of the wizard.
Qt Creator creates the following files:
The import statement in the beginning of the .qml file specifies the Qt modules to import. Each Qt module contains a set of default elements. Specify a version to get the features you want.
To use JavaScript and image files in the application, copy them to the project folder.
Select File > New File or Project > Applications > Qt Quick Application 1 (Built-in Elements) or Qt Quick Application 2 (Built-in Elements) > Choose, and follow the instructions of the wizard.
Note: The SDK for a particular target platform might install additional templates for that platform. For example, the Qt Quick Application for MeeGo Harmattan template is installed as part of the MeeGo Harmattan tool chain and the QNX templates are installed as part of the BlackBerry NDK or the QNX SDK.
Qt Creator creates the necessary boilerplate files. Some of the files are specific to a particular target platform.
If you have existing QML applications that you want to run in Qt Creator or deploy to mobile devices, select the Qt Quick Application (from Existing QML File) template to import the main .qml file in your project.
All the other files in the project are automatically added to the application project. Qt Creator adds references to the QML files to a project and creates the additional files necessary for deploying applications to mobile devices.