Results 1 to 7 of 7
Hey guys,
I'm looking for a simple GUI library that uses coordinates like windows and has a decent tutorial or two to its name. Which C GUI library best suits ...
- 08-07-2007 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
Simple GUI C Library
Hey guys,
I'm looking for a simple GUI library that uses coordinates like windows and has a decent tutorial or two to its name. Which C GUI library best suits this?
- 08-07-2007 #2
The two most popular GUI toolkits on Linux are Gtk+ and Qt. Gtk+ is C-based, and Qt is C++-based.
Gtk+'s homepage has a tutorial and a full API reference:
GTK+ - The GIMP ToolkitDISTRO=Arch
Registered Linux User #388732
- 08-07-2007 #3Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
I think that I'm going to go with QT. I'd really prefer using a windows-like event stack rather than callbacks or slots and signals because I'm just more used to the event stack from my BASIC windows programming days. However, there doesn't seem to be anything like that on Linux, so it looks like I'll just have to learn to love them. Also, I'd really prefer C because of its simplicity, but GTK names things in such a weird and hard to type out way that I *really* want to stay away from it as well. Thanks for the ideas.
- 08-08-2007 #4Just Joined!
- Join Date
- Jul 2006
- Posts
- 52
- 08-08-2007 #5Linux Newbie
- Join Date
- Jun 2006
- Posts
- 150
I like C a lot better than C++ just because I haven't learned it yet. Other than that it's ok, but I do appreciate the ability to create widgets with simple constructors. I like writing my own GUI's because they can be more dynamic. And python seems a little too much like backtracking to me, although I might learn it just because it's so popular.
- 08-08-2007 #6
Well, Gtk is object-oriented, using a very complicated backend to achieve this. There definitely is something to be said for actual OO (and I want to try out Gtkmm at some point), but I'm not a big C++ fan. I find the language just WAY too overly complicated. I've been using Java for a while though, so I do appreciate OO GUIs.
C, by its nature, can use a lot of code to achieve what, in a higher-level language, would be simpler. I personally appreciate that somewhat, the ability to be a bit more verbose and have that extra bit of control. I could use Perl to write Gtk stuff, but there are other appeals to a compiled language vs. a scripting language.DISTRO=Arch
Registered Linux User #388732
- 08-10-2007 #7Just Joined!
- Join Date
- Aug 2007
- Location
- BLR
- Posts
- 5
gtk is too slow( but qt written with using opengl libraries => qt faster. too qt is easy to learn(if you know oo programming) enjoy qt


Reply With Quote
