Changes

Jump to: navigation, search

DESK-MX-L-AN-0007: Getting Started With QT Creator

399 bytes added, 16:54, 21 February 2018
no edit summary
An installation wizard will appear
[[File:QtCreator XELK 3 0 0 01.png|200px|leftborder|alt textcenter]]
Clik Next to proced the installation.
[[File:QtCreator XELK 3 0 0 02.png|200px|leftborder|alt textcenter]]
Select Skip
 [[File:QtCreator XELK 3 0 0 03.png|200px|leftborder|alt textcenter]]
Select Next
[[File:QtCreator XELK 3 0 0 04.png|200px|leftborder|alt textcenter]]
Select the install directory or click Next
[[File:QtCreator XELK 3 0 0 05.png|200px|leftborder|alt textcenter]]
Select Next
[[File:QtCreator XELK 3 0 0 06.png|200px|leftborder|alt textcenter]][[File:QtCreator XELK 3 0 0 07.png|200px|leftborder|alt textcenter]][[File:QtCreator XELK 3 0 0 08.png|200px|leftborder|alt textcenter]]
Now it is necessary to add the definition of your board before proceding developing your first application.
For adding the board definition run
</pre>
If the installation process went ok you should see inside the Tools->Options menu a Kits named XELK
[[File:QtCreator XELK 3 0 0 09.png|200px400px|leftborder|alt textcenter]]
Select the Kits tab and make sure that your configurations mateches the one displayed
[[File:QtCreator XELK 3 0 0 10.png|200px400px|leftborder|alt textcenter]]
Close the tab and create a new project
[[File:QtCreator XELK 3 0 0 11.png|200px400px|leftborder|alt textcenter]]
Select Application Qt Widgets Application and click Choose...
[[File:QtCreator XELK 3 0 0 12.png|200px400px|leftborder|alt textcenter]]
Now call the name Test and pres Next
[[File:QtCreator XELK 3 0 0 13.png|200px400px|leftborder|alt textcenter]]
Select the XELK Kit and click Next
[[File:QtCreator XELK 3 0 0 14.png|200px400px|leftborder|alt textcenter]]
Choose the class name for your application
[[File:QtCreator XELK 3 0 0 15.png|200px|leftborder|alt textcenter]]
Click finish and conclude the setup
[[File:QtCreator XELK 3 0 0 16.png|200px400px|leftborder|alt textcenter]]
Now you will add a button to your application. In order to do this, select from the Edit window and select Test->Forms->mainwindow.ui
[[File:QtCreator XELK 3 0 0 17.png|200px400px|leftborder|alt textcenter]]
To add a Push Button click on Push Button in the Buttons tab and drag it to the main widown view. In order to edit the text displayed by the label, dubble click it and write "Hello World!"
[[File:QtCreator XELK 3 0 0 18.png|200px400px|leftborder|alt textcenter]]
After that, you need to insert the following line inside the Test.pro file
<propre>
target.path = /tmp/Test # path on device
INSTALLS += target
</propre>
Where /temp/Test is the path in which your application will be dowloaded inside the device
[[File:QtCreator XELK 3 0 0 19.png|200px400px|leftborder|alt textcenter]]The last step before running the application inside the device is to select the Project window select the Run configuration and as Arguments<pre>-platform eglfs</pre>[[File:QtCreator XELK 3 0 0 20.png|400px|border|center]]After these changes you are ready to debug your application directly inside your board with the Run/Debug command[[File:QtCreator XELK 3 0 0 21.png|400px|border|center]]
170
edits

Navigation menu