Monday, February 22, 2010

QT - things to know

As I have started working with QT, there are a few things you need to know and be careful about

1) When you have to connect a signal to a slot , you need to have a Q_OBJECT declaration in that particular class, whose object is sending the signal.
2) When connecting a signal to a slot, both the signal and the slot should take the same parameters, for example, if a signal is passing an int, the slot should also accept an int.
3) Most importantly it is better to declare your QT classes in a separate file and have cpp and .h files

Sunday, February 21, 2010

Working with QT

I started working with QT recently. The last time I started working with QT was several years ago. And my experience with it wasnt that great.

Now I have started working with the QT IDE and have really enjoyed it. The QT IDE is by far the best IDE I have worked with. The layout is better than the eclipse layout

Here is how to get a QT IDE

Use the LGPL license, but its 380 MB to download.

Also QT can be integrated with eclipse
here's how

I have started developing some simple applications using QT. I will keep you updated on the experience