It's not a secret anymore!
The moose likes C / C++ and the fly likes How to make a C++ basic GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Languages » C / C++
Bookmark "How to make a C++ basic GUI" Watch "How to make a C++ basic GUI" New topic

How to make a C++ basic GUI

Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
I am a complete newb in C++ and need help making a simple GUI. Any help will be apreciated!!!

Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.
David Sharpe
Ranch Hand

Joined: Jun 15, 2009
Posts: 36
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

Joined: Oct 02, 2009
Posts: 42
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

Joined: Mar 22, 2005
Posts: 42958
A pretty good overview of GUI toolkits can be found at

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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to make a C++ basic GUI
It's not a secret anymore!