Thursday, September 11, 2008

How I got introduced to Qt and some basics?

Hello friends,
Today, I am going to talk about something very off-the-line and new, it's Qt. What is this? we will come to this later.

How I came to this? Actually, ... there is indirect link to, me reaching at Qt. I had XP on my laptop, and just 1 month before, I removed XP completely, and installed UBUNTU 8.04 in my suddenly awaken sense of open source sharing, pirated software crime etc. !!!

Things went very well, as I was doing my routine work, But I realized that, MS VC++, VB, is so strong for my application development, and I didn't know whether I can develop or learn my GUI, event based applications in Eclipse? (I still don't know!).
So, I was chatting once to my colleague Deepak on tea, we were chatting about why I wanted to switch to XP again? He suggested, use Qt yar, it is for C++ GUI development.
So, this way, I reached to Qt.

What is Qt anyway?

Developed by: Norwegian Company Trolltech
Qt is a multiplatform C++ GUI toolkit. It provides application developers with all the functionality needed to build applications with state-of-the-art graphical user interfaces. Qt is fully object-oriented, easily extensible, and allows true component programming.
Most suitable link for resources, about Qt FAQ's, help, forums, technical FAQ's, is :
TROLLTECH - http://www.trolltech.com/

Installation:
Option 1.
Use Synaptic;
Option 2.

apt-get install libqt4-core libqt4-dev libqt4-gui qt4-dev-tools qt4-designer


After, downloading packages and installation is done, go to
Applications --> Programming --> you will see...
Qt4 Assistant
Qt4 Designer
Qt4 Linguist
Click on designer to view your beautiful, GUI to create C++ GUI applications.
You will see:
P.S.: credits for information available here is to : TROLLTECH
Following is the fundamental sequence of implementation events that happens in any GUI, or event-based application:
Step 1. Design your GUI according to your application's requirements;
Step 2. Add properties and variable names to the controls in your GUI;
Step 3. Add code to controls.
More to come ...

Cheers!
Rajendra