Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 24th, 2006, 2:34 AM   #1
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Qt vs GTK

I've decided that I should finally get my arse in gear and make some programs with GUIs in C++. As I've mostly moved to Linux for my personal development, I was wondering how many of you have experience with Qt, GTK, and whatever else is out there (and if there are others worth mentioning, please do). I tried googling around, and what I've read so far indicated that Qt takes a bit less coding at the cost of either purchasing a commercial license or releasing under the GPL (which isn't a big deal). There was also a few mentions that GTK requires one to wrap C code for usage in C++, whereas Qt is done in C++ to begin with. I didn't really see anything that compared their features or even their structure except to say that they were similar. So overall, I'm leaning towards Qt...

Does anyone have anything else to offer about one, the other, or both?

Thanks.
Jimbo is offline   Reply With Quote
Old May 24th, 2006, 4:05 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Qt integrates better with native Windows widgets; other than that, I think you covered all of the pros and cons of both systems.
Arevos is offline   Reply With Quote
Old May 24th, 2006, 1:21 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I think Qt's better structured and prettier. The downside is, of course, the whole licensing thing. If you're not bothered about that, I would suggest going for it.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 24th, 2006, 11:39 PM   #4
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
You should give a look at wxWidgets, it uses native widgets instead of drawing its own (like QT does) and it doesn't have any licensing issues. It also has plenty of tools tools.
Game_Ender is offline   Reply With Quote
Old May 25th, 2006, 4:26 AM   #5
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3 Soulstorm is on a distinguished road
As ooble said, the most annoying thing with Qt is the license. If you just want to exercise in Qt, without worrying about releasing your work to the public, then Qt openSource is the right version for you, unless you have thousands of dollars to spend.

If you have OS X, I think Qt is the way to go, although the installation procedure should have been covered with more information...
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline   Reply With Quote
Old May 25th, 2006, 6:33 AM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Game_Ender
You should give a look at wxWidgets, it uses native widgets instead of drawing its own (like QT does) and it doesn't have any licensing issues.
It's a bit flakey, though. GUIs created with wxWidgets have an amateurish (for want of a better word) taint to them, I've found. Qt seems, internally and externally, a lot more robust.
Arevos is offline   Reply With Quote
Old May 25th, 2006, 9:45 AM   #7
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
I don't know where you are getting that feeling from. What application have you used that gave you that feeling, are you sure it was wxWidgets that made the application flaky, not bad coding?

Epic uses wxWidgets for its UnrealEd, while Audacity, Code::Blocks, DialogBlocks, and wxDesigner don't feel flaky at all. I have used plenty of QT in KDE and that setting feels fine, I really don't know of any QT application I have used on OS X or Windows.
Game_Ender is offline   Reply With Quote
Old May 25th, 2006, 5:01 PM   #8
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4 Jessehk is on a distinguished road
The Qt documentation is amazing. It is the a joy to quickly get the information you need.

Example: http://doc.trolltech.com/4.1/qpushbutton.html
There are also lots of tutorials and examples.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old May 26th, 2006, 10:29 PM   #9
sunnypalsingh
Programmer
 
sunnypalsingh's Avatar
 
Join Date: Dec 2005
Posts: 33
Rep Power: 0 sunnypalsingh is on a distinguished road
I guess
QT can only be used from C++ whereas GTK it possible to use from any language.
What say??
__________________
The only real valuable thing is intuition.
-Albert Einstein
sunnypalsingh is offline   Reply With Quote
Old May 27th, 2006, 3:18 AM   #10
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
You can use Qt in Python, I've done it before.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC