Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a C++ basic GUI

 
Cody Long
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a complete newb in C++ and need help making a simple GUI. Any help will be apreciated!!!
 
David Sharpe
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be more specific. Your question as stated is more of a Google query than a forum topic. You might start by explaining what research you've done on your own so that people interested in helping you don't waste your time by telling you things you already know.

I'm a bit worried that writing a C++ GUI might be beyond a "complete newb in C++", but I'm not sure. In my experience, C++ GUI tutorials assume a firm grasp of C++ syntax and semantics.

Since C++ doesn't have a standard GUI toolkit (like Java's "Swing" toolkit), you'll need to choose one. I've programmed a simple media player application using gtkmm before, but I'm also curious about wxWidgets. Qt is a popular choice.
 
Brian Drelling
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While I am not the original poster, I'd like to ask a question of my own on this topic.

Obviously Java is easier to make GUI with using Swing, but just how complicated is it with C++? Is there ANYTHING that helps you in C++ to do this?

You would think with the extent the language is used for game programming, something like Swing would have existed by now, and if it does and I simply don't know about it yet, please excuse my ignorance and inform me.

I am currently learning C++ and Java simultaneously, and it is tough. Java is way easier, but it seems like you can really have much more of a grasp on every little thing you are doing in C++, which can also lead to many more mistakes. Correct me if I am wrong.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A pretty good overview of GUI toolkits can be found at http://www.atai.org/guitool/

The Qt toolkit is probably the one for which it's easiest to get help online, but it's not free to use for commercial applications.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic