views:

2480

answers:

7

What is the easiest way to make Linux C++ GUI apps? I'm using GNOME and ubuntu 8.10.

+15  A: 

I personally prefer QT as I prefer working with the signal/slots mechanism and just find it easy to develop applications quickly with it. Some of your other options would be wxWidgets and GTK+.

CTT
Qt is great, although Qt apps might look a bit out of place in Gnome.
David Zaslavsky
I think that QGtkStyle, especially under QT4.5, blends in quite well with native gtk apps.
CTT
It blends in quite well, however, still has integration problems. For example, standard dialogs like the color chooser are different. And while I really love Qt, unfortunately the color chooser esp. totally sucks compared to the GTK+ one. But they want to change that (use GTK+ choosers).
ypnos
I switched to kubuntu so everything works great now.
Lucas McCoy
+7  A: 

gtkmm is the c++ binding to gtk, it should work fine

Ronny
I've looked at gtk, but I have no idea how to install it. I ran configure and it did not work.
Lucas McCoy
try something like sudo apt-get install gtk-dev
Andy
Thanks a lot! I didn't think it would be that easy!
Lucas McCoy
Don't forget that Ubuntu and Debian tends to put alot of the 'classic' development infrasture in the build-essential package, so install that too.
Arafangion
+5  A: 

Try QT, it will work on Ubuntu, and has a lot of development tools and documentation behind it.

eg a tutorial, or another tutorial or yet another tutorial

gbjbaanb
Good Tutorials! Thanks!
Lucas McCoy
+3  A: 

I can personally vouch for the ease of use of qt in general, as well as linux specific development. CHeck it out :)

Stefan Kendall
+8  A: 

The easiest way is to use an GUI GUI builder.

Glade for GTK.

QT Designer for QT.

wxDesigner and wxFormBuilder for wxWidgets.

Update: I should mention that these output C++ among many others?

Allen
This can't be up-voted enough times... These are fantastic!
Arafangion
+2  A: 

Just to be clear about the toolkits mentioned so far (GTK+,QT and wxWidgets)

GTK+ is the toolkit used by GNOME

QT is the toolkit used by KDE

wxWidget aims to be an abstraction above those (and others) to be less desktop environment specific.

Another toolkit worh takeing a peek at is EFL the toolkit used by E17, although the glacier development speed of this desktop environment may put you off, I hear nice things about it's design. Note that some components from the Enlightenment project such as imlib2 has been used for years by other projects.

John Nilsson
"glacier development speed"? I had to unsubscribe from the Enlightenment CVS mailing list because of the traffic - 15+ major commits a day!
greyfade
I haven't followd it for a while. But to my knowlege there is still no 1.0 released from this project.
John Nilsson
The way you put it, it sounds like KDE is the only major user of Qt. Actually Qt apps include Google Earth, Opera and Skype.
Stefan Monov
+2  A: 

I suggest Juce. It's elegant, cross-platform, fast, well-written, almost totally bug-free and is identical to the last pixel on every platform it runs on. The number of known bugs is nearly always zero, since when a bug report is filed, the author drops everything and fixes it! The Register wrote an article about it a while ago which gives a rather good overview of the library.

Chinmay Kanchi