Monday, October 25, 2010

First program in Qt

I am assuming you are working on linux.
For IIT Madras users. It was always a big pain for me to set the repositories. Here is the deal for ubuntu users of IIT Madras.

System->Administration->Synaptic package manager
Set the following two things
1)Settings->preferences->network
Click on Direct connection to internet

2)Settings->Repositories->Ubuntu software (by default it will be on ubuntu software)
select download from http://ftp.iitm.ac.in/ubuntu - you can do this by selection other in the selection which will lead you to the ftp site i mentioned

Click RELOAD once this is done- please dont forget to do this. Repositories are set :)

As I mentioned before I am assuming you have installed qt by downloading it from the nokia website. Once you have installed qt do the following

uninstall:
libqt3-headers
libqt3-mt-dev
qt3-dev-tools

install:
libqt4-core
libqt4-dev
libqt4-qt3support
qt4-dev-tools

source: http://ubuntuforums.org/showthread.php?t=593183

Download  "C++ GUI Programming with Qt 4, Second Edition
by Jasmin Blanchette; Mark Summerfield"  from gigapedia.com. Yes it is an ebook. Write your first program. The instructions are very clear in the ebook - even I could do it :P

0 comments:

Post a Comment