GUI Programming

Lately I got very interested in GUI programming. I download Qt Creator and dived in head first. I was able to create a few apps and useless things. But now I'm doing it I ask myself: Is C++ actually a good language for GUI programming?
Another question I'm having: Is it actually needed to learn GUI?

In what languages do you code GUIs and if so, in what frameworks (Qt, wxWidgets etc...)

Xander
I've asked myself a lot of that recently also. C# is much better for GUI than C++. However, Qt comes pretty darn close to matching it.

Is it actually needed to learn GUI?
Not needed. It's probably a good thing to have under your belt though.

In what languages do you code GUIs and if so, in what frameworks
C++, with Qt.
Is C++ actually a good language for GUI programming?
Almost all major GUI libraries themselves are written in C or C++
closed account (EzwRko23)
Correction: Almost all major **C++** GUI libraries themselves are written in C or C++
As is usual in programming it is problem dependent. If you just want to try out some simple GUI code, see how it might work you could use Python and TkInter. Otherwise I can recommend GTK although I would be bias towards it since it was the only one I tried using...
I looked into gtkmm and Qt so far. Qt seems by far the easiest to me. But, somehow it doesn't feel C++ish, while gtkmm feels like it's STL...
Anyone ever coded in gtkmm?
I have, GTKmm is quite nice. Why do you say that Qt is easier? I think they are both quite intuitive to use
xorebxebx: I've noticed you seem a tad hostile towards C++, why is that? And please justify your statement above.
As for GUI programming, have you concidered using C++ alone? It's quite easy to learn and is less constrictive than Qt (or any other for that matter)
xorebxebx: I've noticed you seem a tad hostile towards C++, why is that? And please justify your statement above.
Don't care about it, is the troll of the forum
As for GUI programming, have you concidered using C++ alone? It's quite easy to learn and is less constrictive than Qt (or any other for that matter)
What? Standard C++ does not provide any graphic library, you have to use a third party one

At Bazzy:

Almost every forum/review/comparison I've read says Qt is easier...
I've also downloaded Qt creator and played around with it a bit. Was pretty easy to set up widgets etc.
Then I read some GTKmm code and at the hello world prog, everything seemed so much more C++ lol.
But once it got a bit harder, I really couldn't follow. I guess I'll give it another chance!
You can get Glade Designer for GTK-based libraries, it's like Qt Creator
I don't think GTKmm is more difficult than Qt
If so, I think i prefer GTKmm than. Has very nice documentation on their website and it feels more like C++.
Qt feels like writing a different language! I'll check Glade Designer asap!
Am I the only one that likes wxWidgets?
Standard C++ does not provide any graphic library, you have to use a third party one

Windows.h has a graphic library, if you don't mind using HPENs and image loading. what are talking about?? When I said C++ alone I meant what MinGW usually comes with which is probably what xander333 has.
xander333, if you're trying to learn WinAPI, use the windows.h lib for C++. It requires a little learning but you'll be glad you made the effort.
I personally like using Qt when I need to do GUI programming. Although, maybe I should look into GTKmm if it's a bit more "C++"...

Also, the WinAPI is NOT standard C++. :( Furthermore, I personally discourage the use of system APIs when there are cross-platform APIs that do the same task available, however just to make this clear I do on occasion recognize that there is a place for a system-specific API.

-Albatross
Last edited on
And WinAPI is in C.
Qt, GTKmm and wxWidgets are in C++
I don't understand people's comments about Qt not being like C++? I use it quite a lot and haven't noticed anything that really goes against C++, unless people mean it's fondness for it's own data types (QString, QList, etc) - which kind of makes sense when the aim is to make something cross-platform easily and allows for Nokia to optimise it.
Last edited on
Topic archived. No new replies allowed.