You are not logged in.

#1 2009-10-14 00:56:42

techprophet
Member
Registered: 2008-05-13
Posts: 209

Would you rather write a program in GTK+ or Qt4, and why?

Personally, I prefer Qt4 (both because it's C++ and because I like the way the widgets look better). What do you guys think?

Aaaaaaaaaaaand GO!!!!

Offline

#2 2009-10-14 01:01:31

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: Would you rather write a program in GTK+ or Qt4, and why?

Qt4 for me as well, it just makes C++ so much easier and handles all the cross platform nonsense for you.

Offline

#3 2009-10-14 01:34:36

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Would you rather write a program in GTK+ or Qt4, and why?

I have no experience in either, but I wouldn't say C++ is an advantage of Qt unless you actually code the widget platform itself, as GTK has C++ bindings smile
Of course, Qt might be nicer than Gtk's C++, but that's separate.

Last edited by Ranguvar (2009-10-14 01:34:59)

Offline

#4 2009-10-14 01:42:27

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Would you rather write a program in GTK+ or Qt4, and why?

I like Gtk and am using the PyGtk bindings at the moment. PyGtk makes quick prototyping fast and easy. It has been a while since I have used Qt but it struck me as fairly solid. It also has PyQt but I haven't used it. I used Gtkmm once which is the C++ binding for gtk and it was OK.

Offline

#5 2009-10-14 05:14:31

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?

QT sucks. Also widgets look as good as the theme. if you run a GTK app with the default theme, expect it to look like sh*t


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#6 2009-10-14 05:39:15

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: Would you rather write a program in GTK+ or Qt4, and why?

Qt because of the awesome QtCreator smile

Offline

#7 2009-10-14 07:08:49

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: Would you rather write a program in GTK+ or Qt4, and why?

Lich wrote:

QT sucks. Also widgets look as good as the theme. if you run a GTK app with the default theme, expect it to look like sh*t

Fail! You just proved that QT > gtk. (If you run qt app it always looks good gtk apps not so much)

Offline

#8 2009-10-14 08:47:34

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?

Mikko777 wrote:
Lich wrote:

QT sucks. Also widgets look as good as the theme. if you run a GTK app with the default theme, expect it to look like sh*t

Fail! You just proved that QT > gtk. (If you run qt app it always looks good gtk apps not so much)

All I said is that the default gtk theme sucks, and it does. But I don't think there's many GTK "lovers" that stick to the default anyway. Just because QT comes with a better default theme doesn't make QT better. It will always suck in my eyes.

Last edited by Lich (2009-10-14 08:47:52)


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#9 2009-10-14 09:28:13

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Would you rather write a program in GTK+ or Qt4, and why?

you guys should run "pacman -Rsncu qt" or "pacman -Rsncu gtk2" before calling either one names .


English is not my native language .

Offline

#10 2009-10-14 11:12:08

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?

ターミナル (~) $ pacman -Qi qt
error: package "qt" not found
ターミナル (~) $

Last edited by Lich (2009-10-14 11:12:54)


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#11 2009-10-14 11:19:14

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: Would you rather write a program in GTK+ or Qt4, and why?

Lich wrote:
Mikko777 wrote:
Lich wrote:

QT sucks. Also widgets look as good as the theme. if you run a GTK app with the default theme, expect it to look like sh*t

Fail! You just proved that QT > gtk. (If you run qt app it always looks good gtk apps not so much)

All I said is that the default gtk theme sucks, and it does. But I don't think there's many GTK "lovers" that stick to the default anyway. Just because QT comes with a better default theme doesn't make QT better. It will always suck in my eyes.

And all I didn't say but ment is that QT can use gtk themes and gtk cannot use qt themes.
Thus qt wins on the native look theming contest.

Offline

#12 2009-10-14 11:43:29

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?

w/e


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#13 2009-10-14 11:50:02

Mazur
Member
Registered: 2009-06-10
Posts: 103
Website

Re: Would you rather write a program in GTK+ or Qt4, and why?

Qt and C++ is the best thing I saw ever for programming GUI.

Offline

#14 2009-10-14 12:41:43

samjh
Member
From: Australia
Registered: 2009-08-25
Posts: 34
Website

Re: Would you rather write a program in GTK+ or Qt4, and why?

Depends on which programming language.  For C++, Qt by a million miles.  For Python, either is fine.  For any others, GTK+.

Last edited by samjh (2009-10-14 12:42:44)

Offline

#15 2009-10-14 12:43:00

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: Would you rather write a program in GTK+ or Qt4, and why?

Lich wrote:

QT sucks. Also widgets look as good as the theme. if you run a GTK app with the default theme, expect it to look like sh*t

A very compelling argument, but I would have to disagree.  Also, this is a question about writing programs not how things looks with their default theme.

I have only read documentation and fixed bugs in GTK, but have written full applications from scratch in Qt.  The documentation for Qt is fantastic and makes life much easier.

Offline

#16 2009-10-14 12:48:46

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?

scio wrote:
Lich wrote:

QT sucks. Also widgets look as good as the theme. if you run a GTK app with the default theme, expect it to look like sh*t

A very compelling argument, but I would have to disagree.  Also, this is a question about writing programs not how things looks with their default theme.

I have only read documentation and fixed bugs in GTK, but have written full applications from scratch in Qt.  The documentation for Qt is fantastic and makes life much easier.

That wasn't my argument, it was a reply for the guy before me smile. Code in whatever you'd like, but don't tell me GTK doesn't have a good documentation. C# compared to C makes your life way easier too, but that doesn't make it better

Last edited by Lich (2009-10-14 12:50:07)


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#17 2009-10-14 12:53:27

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: Would you rather write a program in GTK+ or Qt4, and why?

I generally prefer Qt, mostly out of habit though.


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#18 2009-10-14 13:26:23

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#19 2009-10-14 13:34:12

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Would you rather write a program in GTK+ or Qt4, and why?

Nice thread wink
Yesterday I wanted to ask for same thing (really!). smile
What do you think (I'm now talking about Python).
Which libaries will be faster QT or GTK (I don't talk about eating resources but what libary will be faster) smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#20 2009-10-14 13:38:01

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Would you rather write a program in GTK+ or Qt4, and why?

I only have experience with PyGTK, but I found it to do a good job when it comes to "normal" applications (only wrote stuff for my own use). The only problem I had with GTK under Python were text lists, when I had a HUGE amount of lines, it was really slow. Probably my fault though


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#21 2009-10-14 13:38:20

techprophet
Member
Registered: 2008-05-13
Posts: 209

Re: Would you rather write a program in GTK+ or Qt4, and why?

Faster as in faster to code? Qt for me because of familiarity. But I can't say for sure. If you have to sub-class anything, Qt works beautifully. I have 4 very specialized subclasses in my project, and after you figure out how to do it, it's really easy.

Offline

#22 2009-10-14 13:40:23

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Would you rather write a program in GTK+ or Qt4, and why?

techprophet wrote:

Faster as in faster to code? Qt for me because of familiarity. But I can't say for sure. If you have to sub-class anything, Qt works beautifully. I have 4 very specialized subclasses in my project, and after you figure out how to do it, it's really easy.

No I talk about that what Lich (Thanks) said (That is what I mean by fast) smile

Last edited by SpeedVin (2009-10-14 13:48:32)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#23 2009-10-14 14:20:44

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: Would you rather write a program in GTK+ or Qt4, and why?

Sorry but:

TFA wrote:

1) There's more GTK software out there than Qt software. I don't have any numbers to back this up, and I notice Qt-apps is quite active.

Then he proceeds to base all his conclusions on the fact that there's more GTK software than Qt software.  Granted this may be true, especially since Qt only recently adopted the LGPL.

Also:

TFA wrote:

Some people thought that I thought GTK is a superior toolkit than QT. I don't. Actually, wouldn't know what seperates them on a technical level. All I looked at were applications.

So again, this doesn't apply to the thread.  He only looks at current applications, not writing one.

SpeedVin wrote:

Which libaries will be faster QT or GTK (I don't talk about eating resources but what libary will be faster)

It depends on what you are doing, I've never had a problem with Qt applications being slow, same for GTK.  But I've only done high performance applications in Qt.

Offline

#24 2009-10-14 16:10:37

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: Would you rather write a program in GTK+ or Qt4, and why?

I just readed some infos about GTK vs QT and look what I find:
http://www.wikivs.com/wiki/Qt_vs_GTK
I think I have to try Qt smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB