3.1. Create the application
To create a "Hello World" application, first create an empty QA Quick Application project and then add code to the project.
1. Create an Empty QT Quick Application project
Follow these steps to create a new empty QT Quick application project:
- Click File > New File or Project.
- Select Application from the Projects list at the left.
- Select Qt Quick Application - Empty.

- Click Choose to start the project creation wizard.
- Fill the Project Location page fields:
- Enter a name for the new project, for example <PLATFORM>_QTQ_HelloWorld.
- Set the location of the directory that will hold new project, for example /home/<user>/workspace.
Note The selected directory must already exist.
- Click Next to continue.
- In the Build System page select qmake and click Next to continue:
- In the Details page, set the Minimal required Qt version to the version you configured in the Configure DEY Qt Compiler step.
- Click Next to continue.
- In the Kit Selection page, check the previously created Kit configuration.
- Click Next to continue.
- In the Project Management page, click Finish to end the wizard.
- The new project is created and displayed in the projects view:
2. Add code to the project
Follow these steps to add code to the project:
- Copy the following block of code and paste it inside the Window section of the main.qml file:
main.qml
Text { anchors.centerIn: parent text: "Hello, World!" }The piece of code above creates a new text label in the center of the application window displaying the text "Hello, World!"
- Save the file (ctrl+s or File > Save All)

PDF
