Changes

Jump to: navigation, search

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

10 bytes added, 10:51, 22 February 2018
no edit summary
[[File:QtCreator XELK 3 0 0 06.png|200px|border|center]]
And then click thenclick '''Install''' and complete the installation.
[[File:QtCreator XELK 3 0 0 07.png|200px|border|center]]
And then Then '''Finish''' to exit the setup wizard.
[[File:QtCreator XELK 3 0 0 08.png|200px|border|center]]
[[File:QtCreator XELK 3 0 0 22.png|400px|border|center]]
Choose the generic ''Generic linux device''
[[File:QtCreator XELK 3 0 0 23.png|400px|border|center]]
Insert the ip IP address of your device and , the username and password of the root account. Make sure that the device is connected to the network and your virtual machine is configured to use a bridge connection and click .  Click '''Next'''.
[[File:QtCreator XELK 3 0 0 24.png|400px|border|center]]
If everithing everything went ok you should see a dialog like the next oneimage below.
[[File:QtCreator XELK 3 0 0 25.png|400px|border|center]]
And finally this is how the <code>Devices</code> window should look like.
[[File:QtCreator XELK 3 0 0 26.png|400px|border|center]]
[[File:QtCreator XELK 3 0 0 29.png|400px|border|center]]
Do the same fort for the C++ cross compilation tool.
<pre>
=== Debugger GDB ===
Now it is necessary to add a debugerdebugger. In order to do this go to the <code>Debuggers</code> tab and click '''Add'''
[[File:QtCreator XELK 3 0 0 30.png|400px|border|center]]
=== Qt Version ===
Next you need to add the Qt Version installed on your devicesdevice. Go to <code>Qt Version</code> click '''Add''' and select the following qmake file.
<pre>
=== Kits ===
The last step is to add a new kit. Go to <code>Kits</code> and click '''Add''' and complete the information as showed shown below.
[[File:QtCreator XELK 3 0 0 33.png|400px|border|center]]
Pay attention that in <code>Qt mkspec</code> you should need to write
<pre>
[[File:QtCreator XELK 3 0 0 34.png|400px|border|center]]
After this your setup is complete and you can procede proceed and create your Qt applications.
== Qt application example ==
Now that the setup is finished, you can create your first application
Open a new terminal and source the enviroment environment variables with the command.
<pre>
</pre>
In the same terminal digit the following command if you didendidn't change the installation directory.
<pre>
</pre>
<span style="color:#ff0000"> It is important to repeat the previous two step each time you close the Qt Creator application . </span>
Now click on <code>New Project</code>
[[File:QtCreator XELK 3 0 0 12.png|400px|border|center]]
Now call the Project ''Test '' and pres press Next.
[[File:QtCreator XELK 3 0 0 13.png|400px|border|center]]
[[File:QtCreator XELK 3 0 0 17.png|400px|border|center]]
Click on Push Button in the Buttons tab and drag it to the main widown window view. In order to edit the text displayed by the label, dubble double click it and write ''"Hello World!"''.
[[File:QtCreator XELK 3 0 0 18.png|400px|border|center]]
After that, you need to insert the following two line inside the ''Test.pro'' file
<pre>
</pre>
Where <code>/temp/Test</code> is the path in which your application will be dowloaded downloaded inside the device.
[[File:QtCreator XELK 3 0 0 19.png|400px|border|center]]
170
edits

Navigation menu