You are not logged in.

#1 2010-03-14 21:24:48

kdar
Member
From: Sweet home Alabama!
Registered: 2009-06-27
Posts: 356

Learn C++... start with Qt or GTK?

I had few C++ classes before, basic into to C++ and class which touched on object oriented programming, trees, arrays.. etc. But I never had chance to make that programming somewhat meaningful (I was just doing different, in-class assignments for programming from command line).

I would like to start developing something for Gnome or KDE. (As a way of practice. Maybe start from some tutorials and start to learn basic things).

Since I want to learn C++.. Where do you think I should start? Gnome's GTK/GTK+ or KDE's Qt?

Do you know if both have some tutorials on how to start developing something?

Offline

#2 2010-03-14 21:37:45

SoleSoul
Member
From: Israel
Registered: 2009-06-29
Posts: 319

Re: Learn C++... start with Qt or GTK?

KDE is more C++ like in design.
GTK is originally more C.
This doesn't mean that there are no C++ bindings to GTK.

Offline

#3 2010-03-14 21:42:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: Learn C++... start with Qt or GTK?

gtkmm is the C++ binding for GTK, but it is not particularly friendly...  Qt definitely has the more C++ like bindings.

Offline

#4 2010-03-14 23:24:36

kdar
Member
From: Sweet home Alabama!
Registered: 2009-06-27
Posts: 356

Re: Learn C++... start with Qt or GTK?

So if I would like to experience more with C++? Do you think I should start with Qt? At least start.

And if KDE.. what tools are available there?
Any knows tutorials on this subject?

Last edited by kdar (2010-03-14 23:31:58)

Offline

#5 2010-03-15 01:06:41

Bralkein
Member
Registered: 2004-10-26
Posts: 354

Re: Learn C++... start with Qt or GTK?

I would say that doing some programming with Qt would be a decent way to start off. Since KDE is based on Qt you could start with some "pure" Qt work and then expand to KDE apps if you feel like it later on. There are some tutorials and examples here on the Qt website. I have worked through some of them before, they are quite good IMO. For KDE there seems to be quite a lot of material on KDE Techbase but I haven't looked at much of it so I can't tell you if it's good/complete/up-to-date or whatever.

If you want some fantastic free books on C++ I would have to recommend Thinking In C++ Volumes 1 & 2 by Bruce Eckel. You can get them for free here on his website. I learnt so much from those books when I was starting out programming, I can't believe he gives them away like that! What a guy smile They are quite thick and detailed though, so maybe you don't have the patience to work all of the way through them, but they might be useful as a sort of reference too.

Well good luck anyway, hopefully you'll end up making some great FOSS apps for us to enjoy! (no pressure wink)

Offline

#6 2010-03-15 01:12:24

kdar
Member
From: Sweet home Alabama!
Registered: 2009-06-27
Posts: 356

Re: Learn C++... start with Qt or GTK?

Thank you Bralkein. (for the links to tutorials and book).

I love when people give away their books for free. I will check them out. More detail is probably good, since some books don't seem to go very deep, especially books used in my class.

Do you know good IDE from doing something in Qt?

I think before, I downloaded some IDE from Qt itself.. or maybe it was Kdevelop? I kind of forgot. It was long time ago when I tried to do it the first time.
Can someone recommend me something?

Offline

#7 2010-03-15 03:15:53

Bralkein
Member
Registered: 2004-10-26
Posts: 354

Re: Learn C++... start with Qt or GTK?

Yes, Qt has its own IDE called Qt Creator which is in the qtcreator package in community repo. There is also KDevelop, version 4.0 is currently still in its 9th beta. I don't use IDEs myself though so I can't say much about either choice. I've heard some good things about Qt Creator though.

Offline

Board footer

Powered by FluxBB