Find the answer to your Linux question:
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 ...
  1. #1
    Linux 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?

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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 Toolkit
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Linux 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.

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Posts
    52
    Quote Originally Posted by Alaric View Post
    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.
    Don't you find doing GUIs in C a bit tedious? I dabbled in GTK and GTKMM tutorials for a bit but then switched over to using Python and PyGTK for ease of use and simply the fact I don't have to write as much code to get something done.

  5. #5
    Linux 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.

  6. #6
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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

  7. #7
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...