LinuxQuestions.org
Visit Jeremy's Blog.
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 07-24-2004, 04:21 PM   #1
max_sipos
Member
 
Registered: Jul 2004
Posts: 96

Rep: Reputation: 15
Choosing an appropriate GUI-toolkit


We are planning to port a windows application (written in C++ with MFC) to Linux. We are trying to keep portability as our top priority. Which Linux GUI-toolkit would you recommend for development in this particular project?


Thank you for any suggestions.
--

Maksim Sipos
 
Old 07-24-2004, 05:15 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
java

Xt is the toolkit for X, it comes as a standard x lib these days ... tho its not really pretty

motif is toolkit i know id never use (and avoid any program written in it ... tho if it was a needed program (or good one i liked) id install it)

qt is for KDE

gtk is for pretty much anything but kde ( gnome uses it as its main toolkit, tho people that don't use gnome also have gtk as the gimp, and most popular programs (that arnt kde) use it (well, not most.... but a lot, and its a good toolkit, tho i never used qt)

tk (from tcl) is rather one that is seen on both kde or gnome (tho its rather ugly, its used to give tcl programs a GUI, and really most people only use it as needed)

i believe theres others but i forget them

unless you want to just use xlibs directly
 
Old 07-24-2004, 06:58 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by SciYro
java

Xt is the toolkit for X, it comes as a standard x lib these days ... tho its not really pretty

motif is toolkit i know id never use (and avoid any program written in it ... tho if it was a needed program (or good one i liked) id install it)

qt is for KDE

gtk is for pretty much anything but kde ( gnome uses it as its main toolkit, tho people that don't use gnome also have gtk as the gimp, and most popular programs (that arnt kde) use it (well, not most.... but a lot, and its a good toolkit, tho i never used qt)

tk (from tcl) is rather one that is seen on both kde or gnome (tho its rather ugly, its used to give tcl programs a GUI, and really most people only use it as needed)

i believe theres others but i forget them

unless you want to just use xlibs directly
Qt is NOT for KDE. It happens to be the library that KDE is written in and it's entirely possible (not to mention common) to have the Qt libraries installed with not a hint of KDE anywhere.

That said, I have programmed in it and I loathed it. Anything using signals and slots (or whatever they call them) needs pre-compilling using their meta-object compiler. It's a pain in the @ss.

Gtk was designed originally to make the Gimp (it's short for Gimp ToolKit) and is fairly common, though in its basic form unsuitable for what you want as it's written in C, not C++. However there is a C++ wrapper called GTKMM which I have programmed in and found to be very usable and simple to pick up. It also has the advantage that the user can theme any programs created with it by changing their GTK theme.

There are others, but they aren't that common. In your boat I would try GTKMM, the online documentation is very good.

Qt: www.trolltech.com
Gtkmm: www.gtkmm.org
 
Old 07-25-2004, 12:48 AM   #4
gizmo_thunder
Member
 
Registered: Apr 2004
Posts: 101

Rep: Reputation: 15
I suggest you use Qt coz it proviedes the best portability.
it works on a broad range of platforms like mac, solaris, linux, windows etc

If you want portability.. and ease of programming Qt is the way to go
 
Old 07-25-2004, 01:52 AM   #5
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
Since you're coming from MFC, it's possible that the easiest path for you to follow is to use wxWidgets. I tried it once, and it seemed somewhat similar to MFC. YMMV.
 
Old 07-25-2004, 11:24 AM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by gizmo_thunder
I suggest you use Qt coz it proviedes the best portability.
it works on a broad range of platforms like mac, solaris, linux, windows etc

If you want portability.. and ease of programming Qt is the way to go
From the gtkmm homepage:
Quote:
gtkmm should run under any UNIX-type system with the proper compilers and libraries installed. The GNU C++ compiler (g++, part of gcc) together with the GNU toolset (such as found on Linux and *BSD systems) comprise its default build environment.

gtkmm can also be be built and used with:

1. Sun's Forte C++, on Solaris.
2. Windows, with the mingw build tools.
Having used both Qt and Gtkmm I would say Gtkmm is by far the easier and is no less portable than Qt. It's certainly less hassle as it's genuine C++ without the need for hideous meta-object compilation.
 
Old 07-25-2004, 11:59 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
GTK all the way, but then I'm biased as i hate KDE which QT was designed for
 
Old 07-25-2004, 12:45 PM   #8
max_sipos
Member
 
Registered: Jul 2004
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks

Thanks everybody for sharing your opinions. I guess we'll most probably use GTK or QT - we'll try out both.


--
Maksim Sipos
 
Old 07-25-2004, 02:24 PM   #9
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
If your opinion could still be swayed, I'd also like to throw in my vote for wxWidgets (formerly wxWindows). Admittedly, I do not have much experience with cross-platform programming, but it's supposed to be highly portable, and it's fairly easy to use.
 
Old 07-25-2004, 05:17 PM   #10
max_sipos
Member
 
Registered: Jul 2004
Posts: 96

Original Poster
Rep: Reputation: 15
Impressive history of the wxWidget project and nice looking screenshots say a lot. Another is the afore-mentioned MFC similarity. We are definitely going to try it out. It's downsides though, are that it's not as popular as GTK and QT and that it's a wrapper for other GUI APIs (if I understand it well), which means that the user still needs GTK or Motif under Linux.

--
Maksim Sipos
 
Old 04-20-2005, 11:28 PM   #11
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
So what did you finally go with? I am leaning towards QT, but feedback from someone who has tried different packages would be useful, thank you.
 
Old 04-21-2005, 07:42 AM   #12
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
If you develop propriatary software and have a lot of money.... qt is the way to go.

If you develop proprietary software and don't have a lot of money.... gtkmm and wxwidget are the way to go. Gtkmm is more c++. Wxwidgets has bigger community.
 
  


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
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
best gui toolkit paulr1984 Programming 4 04-03-2004 06:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration