Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-02-2004, 09:01 AM   #1
Registered: Dec 2003
Posts: 75

Rep: Reputation: 15
best gui toolkit

Hi! I would like to know your opinion on which gui toolkit is best. I want to develop gui applications in c or c++ which has speed and portability. Java is very portable, although, it's quite slow. I've tried using mesa/glut/glui but its more on 3d rendering and not really on widgets. I want something fast and could run on unix/linux/windows and maybe even mac os. Thanks!
Old 04-02-2004, 09:45 AM   #2
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
This thread can be a holy war. The best toolkit? On my opinion, this does not have an absolute answer.

Who is the most handsome guy in Hollywood?
Your question is just like that.

I use gtkmm library because I am a big fans of GTK+ and C++. And I am a big Gnome fans too. You can use this library in Windows too.
Old 04-02-2004, 01:41 PM   #3
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
{RANT} Yes, this WILL start a holy war, just like the past 1000+ "best gui" threads have. I really wish people would search for previously asked questions before posting so we wouldnt have to answer the same question over and over! {/RANT} Other than that, QT Rulz GTK drulz :-D

Old 04-02-2004, 10:33 PM   #4
Registered: Dec 2003
Posts: 75

Original Poster
Rep: Reputation: 15
ok. sorry. I don't mean to start any war. I just wanted to get a quick answer. Could you give a brief explanation to why you think qt or gtk+ is the best for you?
Old 04-03-2004, 07:17 AM   #5
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Search first then ask.

But, well, I am not feeling evil today. So here they are:

In my personal opinion, you should choose between: wxWidgets, gtkmm, and qt because they have big support from community or vendor and nice tutorial and documentation.

Try them then pick one of them. Specialize. And you will be a good developer.

Because I am gtkmm fans, I will campaign gtkmm using.
Here's what gtkmm developers said about why you have to choose gtkmm library:

Why use gtkmm instead of GTK+?

gtkmm allows you to write code using normal C++ techniques such as encapsulation, derivation, and polymorphism. As a C++ programmer you probably already realise that this leads to clearer and better organised code.

gtkmm is more type-safe, so the compiler can detect errors that would only be detected at run time when using C. This use of specific types also makes the API clearer because you can see what types should be used just by looking at a method's declaration.

Inheritance can be used to derive new widgets. The derivation of new widgets in GTK+ C code is so complicated and error prone that almost no C coders do it. As a C++ developer you know that derivation is an essential Object Orientated technique.

Member instances can be used, simplifying memory management. All GTK+ C widgets are dealt with by use of pointers. As a C++ coder you know that pointers should be avoided where possible.

Less code. The GTK+ C object model uses prefixed function names and cast macros. For instance:

gtk_button_set_text(GTK_BUTTON(button), "sometext");

gtkmm C++ code is shorter and clearer. For instance:


There's no need to worry about GTK+'s inconsistent reference-counting policy.

gtkmm developers tend to prefer gtkmm to Qt because gtkmm does things in a more C++ way. Qt originates from a time when C++ and the standard library were not standardised or well supported by compilers. It therefore duplicates a lot of stuff that is now in the standard library, such as containers and type information. Most significantly, they modified the C++ language to provide signals, so that Qt classes can not be used easily with non-Qt classes. gtkmm was able to use standard C++ to provide signals without changing the C++ language.

Also, gtkmm and gnomemm allow you to build software which works more closely with the GNOME desktop.

I choose gtkmm because I use Gnome desktop. It is not funny if I develop qt applications using Gnome desktop.

Happy programming!!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing an appropriate GUI-toolkit max_sipos Programming 11 04-21-2005 08:42 AM
recommended GUI toolkit for use with python servnov Programming 4 01-02-2005 07:13 PM
Linux/windows Cross Platform Gui toolkit. mr_segfault Programming 7 10-31-2004 05:57 PM
GUI toolkit for Linux options? servnov Linux - General 1 10-12-2004 12:36 AM
Cross Compiling FOX GUI Toolkit Akuma no Houkon Programming 0 06-07-2004 05:01 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration