TS-4900 QT5 Hello World: Difference between revisions
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
|} | |} | ||
Next, select the kit. In this case I'm enabling Desktop for testing, and | Next, select the kit. In this case I'm enabling Desktop for testing, and TSIMX6. | ||
{| | {| | ||
Line 22: | Line 22: | ||
|} | |} | ||
For now I'm using the default class information. The project management window can also be left with its defaults. Click "Finish". This will generate the new project. Click the button under "Help" on the left column, and select " | For now I'm using the default class information. The project management window can also be left with its defaults. Click "Finish". This will generate the new project. Click the button under "Help" on the left column, and select "TSIMX6" debug. | ||
{| | {| | ||
| [[File:qtselectbuild.png|300px|right|QT Select build]] | | [[File:qtselectbuild.png|300px|right|QT Select build]] |
Revision as of 11:12, 9 February 2017
Open the QT Creator IDE and click "New Project".
There are many options for developing applications with QT, but we will use the default "QT Widgets Application".
Specify the location for your project. Keep in mind that the compile process will create additional build paths in the "Create In:" path.
Next, select the kit. In this case I'm enabling Desktop for testing, and TSIMX6.
For now I'm using the default class information. The project management window can also be left with its defaults. Click "Finish". This will generate the new project. Click the button under "Help" on the left column, and select "TSIMX6" debug.
Now return to edit, and open your QT project file (qt5-helloworld.pro). Add in these lines after the target:
linux-* {
target.path = /home/root/
INSTALLS += target
}
This will specify where the application gets installed when it is deployed to the device during development.
At this point you can press the big green allow in the bottom left to run the application, or go to Build->Run to launch the application. From here, you can begin customizing your application. Refer to the official QT documentation for more information