 |
06-04-2011, 01:58 PM
|
#1 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
want to learn GUI stuffs
i want to learn about any GUI library which i can use to give GUI to my C/C++ programs. I don't want to go advanced and i will be happy with implementing simple GUIs. also i would prefer a library that i can use with other languages too as i will be learning java or python later this summer. also i want a library which works with both windows and Linux.
only library i know about is GTK. i have also heard it be used under windows. what are you opinions about it?
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
06-04-2011, 02:09 PM
|
#2 (permalink)
|
|
Resistance is Futile.
Join Date: Oct 2007
Location: Borg Cube
Posts: 534
|
Re: want to learn GUI stuffs
Quote:
|
i want to learn about any GUI library which i can use to give GUI to my C/C++ programs.
|
Look at Qt. Qt has bindings for most languages - including Python ( via PyQt - not sure about Java).
|
|
|
06-04-2011, 03:29 PM
|
#3 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: want to learn GUI stuffs
|
|
|
06-04-2011, 03:35 PM
|
#4 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: want to learn GUI stuffs
though not a library u can use Visual Basic its easy and fast to learn
|
|
|
06-04-2011, 09:31 PM
|
#5 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: want to learn GUI stuffs
Quote:
Originally Posted by Garbage
|
according to it GTK can be used with JAVA, GTK+ - Language Bindings
|
|
|
06-04-2011, 11:05 PM
|
#6 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: want to learn GUI stuffs
Quote:
Originally Posted by mohityadavx
though not a library u can use Visual Basic its easy and fast to learn
|
Visual Basic doesn't run on Linux. Does it?
|
|
|
06-04-2011, 11:09 PM
|
#7 (permalink)
|
|
Sami Hyypiä, LFC legend
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
|
Re: want to learn GUI stuffs
Well for C++, you have choice of Gtkmm, Qt, wxwidgets, among many others. While GUI Programming isn't exactly in my domain, but I can recommend you a useful link to get you started - ZetCode, tutorials for programmers
|
|
|
07-04-2011, 07:55 AM
|
#8 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: want to learn GUI stuffs
thanks to all! @liverpool_fan the link you gave is very useful
GTK+ seems good to me and it looks easy to learn. i will start with the basics of both GTK and QT and then decide which one should i go forward with.
|
|
|
07-04-2011, 09:36 AM
|
#9 (permalink)
|
|
Alpha Geek
Join Date: Nov 2010
Location: Gurgaon (Delhi NCR)
Posts: 574
|
Re: want to learn GUI stuffs
Quote:
Originally Posted by Garbage
Visual Basic doesn't run on Linux. Does it?
|
Wine maybe of some help
|
|
|
07-04-2011, 12:37 PM
|
#10 (permalink)
|
|
Resistance is Futile.
Join Date: Oct 2007
Location: Borg Cube
Posts: 534
|
Re: want to learn GUI stuffs
Mono, if you're talking about VB.net
|
|
|
07-04-2011, 05:47 PM
|
#11 (permalink)
|
|
Sami Hyypiä, LFC legend
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
|
Re: want to learn GUI stuffs
Quote:
Originally Posted by mohityadavx
Wine maybe of some help
|
Mate he wants to target BOTH Linux and Windows, and you are suggesting him an outdated and crappy Visual Basic and then going on with "Linux users can run it in WINE", that's a pretty awful advice to say to least. No offence.
|
|
|
07-04-2011, 08:20 PM
|
#12 (permalink)
|
|
gkbhat.blogspot.com
Join Date: Apr 2008
Location: Mangalore/Bangalore
Posts: 103
|
Re: want to learn GUI stuffs
@nims11: I suggest you use Qt. The main advantage is it is Object Oriented. It will help you grasp OO concepts better. You can start with Qt creator-it is a easy drag and drop way to create widgets.
__________________
blogging at http://gkbhat.blogspot.com
|
|
|
08-04-2011, 03:44 PM
|
#13 (permalink)
|
|
Alpha Geek
Join Date: Jan 2007
Location: In your hearts
Posts: 828
|
Re: want to learn GUI stuffs
Qt is the best, I have programmed many apps in PyQt4 and Python. Currently, I am learning GTK+ in C. That's also good. QtJambi is Java bindings for Qt. GTK+ is also available for Java, known as java-gnome.
With Qt you can program GUIs in C++/Python/Java/C#/Visual Basic/Ruby etc. Qt is not available for C. GTK+ is available for C and for others too.
Another competitor is wxWidgets, it is good too. It is also available for C++/Python etc. but not for C.
These three are closest competitor.
One thing you should note is
Prefer GTK+ if you are to do only Linux Programming. wxWidgets if you are to do only Windows programming. And Qt is for both. Although all these three are cross-platform, but still I would recommend that because GTK+ has created for Linux, wxWidgets for Windows and Qt came when Linux has just stepped in.
I would recommend Qt if you want to concentrate in C++/Python/Java and GTK+ if you want to concentrate in C.
Qt is not a widget toolkit but its a full framework. Each of them has its own advantage and disadvantage. But I think Qt wins.
|
|
|
08-04-2011, 05:16 PM
|
#14 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: want to learn GUI stuffs
^^ seeing you after a gap! nyways thanks for the reply!
i went through the first 2-3 sections of the both qt and GTK+ tutorial from the link liverpool_fan posted. both seemed good and i was quite confused with what shall i proceed with. i browsed about both qt and GTK for support, tools, documentation and stuffs lyk that and my inclination started shifting from GTK+ to Qt and after reading the last two comments, i think i will be going forward with Qt!
|
|
|
09-04-2011, 12:40 PM
|
#15 (permalink)
|
|
Alpha Geek
Join Date: Jan 2007
Location: In your hearts
Posts: 828
|
Re: want to learn GUI stuffs
Quote:
Originally Posted by nims11
^^ seeing you after a gap! nyways thanks for the reply!
i went through the first 2-3 sections of the both qt and GTK+ tutorial from the link liverpool_fan posted. both seemed good and i was quite confused with what shall i proceed with. i browsed about both qt and GTK for support, tools, documentation and stuffs lyk that and my inclination started shifting from GTK+ to Qt and after reading the last two comments, i think i will be going forward with Qt!
|
Yeah, I was quite busy for some time. 
Do not try to learn 2 toolkits at same time, it will leads to confusion only. If you think you should do Qt then go with it. But one thing you should remember is that GUI programming heavily depends on Object Oriented programming, so your OOP should be strong.
Also for beginners there are very good tutorials on http://zetcode.com.
Good Luck!!
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|