Friday, October 15, 2010

Qt sleepless nights

For the past couple of days I am experimenting with the Nokia Qt SDK. Its fun programming in C++ after a long time. Many things I had forgotten came to life. There are many resources available for Qt. Forum Nokia is I guess a one stop solution for starters, intermediate as well as advanced users.

Anyway, I followed the My First Qt App series from Symbian blog. I love the way it is written. In clean clear and baby steps, it feeds you some Qt in small bits. Very well written posts. Anybody interested in Qt development MUST read it.

Btw, one problem I faced for nearly 4 to 5 hours was Qt giving me collect2: ld returned 1 exit status. Most of the Google results were pointing to some libs missing etc. I downloaded the series example code and checked line by line. It was all the same except for some Macro definitions and header file inclusion techniques(just a different coding style).

Finally, it appears that I had declared a destructor for one of the toolbar widget in the .h file but missed its empty implementation in the .cpp file. Thats all to it. 5 Hrs and sleepless night :)