LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-02-2004, 08:01 AM   #1
paulr1984
Member
 
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, 08:45 AM   #2
melinda_sayang
Member
 
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, 12:41 PM   #3
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
{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

LET THE HOLY WAR BEGIN!!!
 
Old 04-02-2004, 09:33 PM   #4
paulr1984
Member
 
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, 06:17 AM   #5
melinda_sayang
Member
 
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:
http://freshmeat.net/articles/view/928/

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:

button.set_text("sometext");

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!!!!
 
  


Reply


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 07:42 AM
recommended GUI toolkit for use with python servnov Programming 4 01-02-2005 06:13 PM
Linux/windows Cross Platform Gui toolkit. mr_segfault Programming 7 10-31-2004 04:57 PM
GUI toolkit for Linux options? servnov Linux - General 1 10-11-2004 11:36 PM
Cross Compiling FOX GUI Toolkit Akuma no Houkon Programming 0 06-07-2004 04:01 PM


All times are GMT -5. The time now is 12:03 AM.

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