Jump to content

GUI coding in Code::Blocks

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
broncoslb

broncoslb

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
What would you guys recommend to use to build a GUI. GTK+, QT4, wxWidgets, or FLTK? I want to use it in Code::Blocks on my Ubuntu machine. Thanks

#2
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
None of the above, lookup JUICE

#3
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
A little correction to TkTech's post; it's JUCE, without the I.
The official website can be found here: Raw Material Software - Juce

#4
carly

carly

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
on any OS, use native apis.
GUI libs are useless (only for kids who can't program)

#5
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts

carly said:

GUI libs are useless (only for kids who can't program)
Stupidest comment I've heard in a long time. GUI libraries are not useless if you're planning to do cross-platform programming, and also, GUI libraries usually speed up things, because they've a lot of functionality, and you don't have to lookup different API calls, and in which order to call them. Don't get me wrong; it's great to know what's going on under the hood, but saying GUI libraries are useless is stupid, IMO.

No offense...

Edit: By the way, many GUI libraries do use the native API of the operating system.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
Just to build on that, however, if you want to really learn, use the native APIs directly. It'll be harder at first, but you'll learn a lot. I know from experience.

#7
broncoslb

broncoslb

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
Thanks for the replies, I'll look into JUCE and take a closer look at the native api

#8
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts

Quote

on any OS, use native apis.
GUI libs are useless (only for kids who can't program)

You, I'm afraid to say, will never finish a major programming project. Why? Because you'll still be sitting there doing operations on 0xA0000000L instead of using a higher level API. Of course its good to know whats going on under the hood, but its hardly necessary. Its almost always faster, and in many cases more efficient to use a popular library thats been well optimized.

Or are the hundreds of commercial games written in OpenGL done by nubs who don't compare to your l33t BI0S skills?

#9
jazzfan

jazzfan

    Newbie

  • Members
  • Pip
  • 3 posts
Well, the Gtk+ and qt are the biggest multi platform GUI builders. Qt maybe have better developing software (Qtdesigner and Kdevelop) but GTK+ is much closer to C, gtkmm is GTK+ layer which add support for classes, polymorphisms, templates, while Qt is some how "new" c++, complete new language with c++ syntax if you ask me.....

anyway, it's your choice....

#10
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
You can also use integrated GUI designers, such as the one provided in Microsoft's Visual Studio 2008 suite. It combines a program editor, compiler, debugger, and GUI designer in one package for Visual C#, Visual Basic, Visual C++, and Visual Web Developer.

#11
peter Laman

peter Laman

    Newbie

  • Members
  • Pip
  • 3 posts

v0id said:

Stupidest comment I've heard in a long time. GUI libraries are not useless if you're planning to do cross-platform programming, and also, GUI libraries usually speed up things, because they've a lot of functionality, and you don't have to lookup different API calls, and in which order to call them. Don't get me wrong; it's great to know what's going on under the hood, but saying GUI libraries are useless is stupid, IMO.

No offense...

Edit: By the way, many GUI libraries do use the native API of the operating system.
In fact, they all do that, because there's no other way to do it.

#12
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts

"peter Laman" said:

In fact, they all do that, because there's no other way to do it.
Well, yes and no. I said it because some libraries are built on top of other libraries, and therefore don't use the native API directly. Of course, the underlying library will use it. So, in an indirect way it will still be used, and you're right, in the end it will use the native API.