Hello World Program using Qt in Raspberry Pi

Installing the QT in Raspberry pi is very easy using the command line, but it will take 30 minutes to 4 hours to finish the installation depending upon the speed of the internet connection. Downloading and installing the fourth version, QT4 using commands are already discussed in a previous article.In this project the Raspberrypi board is loaded with Ubuntu and is remotely accessed using VNC.

Hello World Program using Qt in Raspberry PiThe list includes “Qt 4 Assistant”, “Qt 4 Designer”, “Qt 4 Linguist” and “Qt Creator”. The “Qt 4 Assistant” is basically provides help in the form of documentations related to the topics in QT. “Qt 4 Designer” is where the user can create a design and save it as a ‘.ui’ file which can then be used in QT projects. The “Qt 4 Linguist” provides a language view of the design created. The “Qt Creator” is where all these things can be done in the same IDE which helps in creating a GUI using QT.

Click on the “Qt Creator” and the following window opens up which includes options for creating a project, editing the code, design the UI and even option for debugging. Options are available in the same window for compile, build and run also.

Select the “Applications” >> “QtGui Applications” and click on the “Choose” button. The following steps are about the files to be generated and the location where they need to be generated.

Hello World Program using Qt in Raspberry Pi CodeThis window asks the location where the project files need to be saved. It is suggested to create a separate folder for each and every QT project since they will generate many numberams of files for a single project. Here a folder named “hello_world” has been created for the project at /home/pi/raspberry_piQT/hello_world and the name of the project is also given as ‘hello_world’.

 

For more detail: Hello World Program using Qt in Raspberry Pi


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top