PDA

View Full Version : I'm interested in making QT applications



TheOrangePeanut
April 6th, 2008, 09:48 AM
I guess QT3 would be the way to go since I'm using KDE3, right? If I use QT3, then later, when QT4 is more widespread and KDE4 is being used primarily, how hard will the transition be? Surely it wouldn't be like learning a new api, right?

LaRoza
April 6th, 2008, 10:11 AM
Googling for the differences yields: http://doc.trolltech.com/4.2/qt4-intro.html

tseliot
April 6th, 2008, 03:12 PM
Here is how you can port your qt3 application to qt4:
http://doc.trolltech.com/4.2/porting4.html

I suggest you to start with QT4 though. Your applications will work on KDE3, KDE4, GNOME, OSX, Windows.

xelapond
April 6th, 2008, 03:12 PM
QT4 was out during KDE3. I would recommend you start with Qt4, because it is more widespread and superior to Qt3. What language are you going to do it in?

hums07
April 6th, 2008, 04:00 PM
I guess QT3 would be the way to go since I'm using KDE3, right?
No. I have used Qt4 in KDE3 and everything goes well.

TheOrangePeanut
April 6th, 2008, 07:01 PM
Ah, okay, I didn't know that Qt4 was already that mature.

I'm going to be coding in C++ or Python. I haven't decided yet. On one hand, I already have a good understanding of C++; on the other hand, Python would probably be pretty simple to learn; on yet another hand that I don't have, I don't know how the resources stack up as far as QT with C++ versus Pyqt :) I guess we'll see... what would you guys recommend?

tseliot
April 6th, 2008, 07:38 PM
I use PyQT4 and it's very easy to learn and to use. I warmly recommend you this book (http://www.amazon.com/Programming-Python-Prentice-Software-Development/dp/0132354187/ref=pd_bbs_1?ie=UTF8&s=books&qid=1207506274&sr=1-1).
This book explains how to use the designer, etc. it's a great book.

Switching from one language to the is very easy and sometimes you have to use C++ syntax for Python too. For example this is a line of code which I wrote (Python+PyQT4) :

stream << self.textEdit.toPlainText()

And we don't use "<<" in Python.

Furthermore the API is pretty much the same. I can read the documentation for C++ and use it with Python.

For rapid development I recommend Python. If you need better performance then switch to C++. I haven't had problems with Python so far.

If you choose C++ I can recommend this book (http://www.amazon.co.uk/Introduction-Design-Patterns-Perens-Source/dp/0131879057/ref=sr_1_4?ie=UTF8&s=books&qid=1207506508&sr=1-4) and/or this book (http://www.amazon.co.uk/Programming-Prentice-Source-Software-Development/dp/0132354160/ref=sr_1_1?ie=UTF8&s=books&qid=1207506508&sr=1-1).