Create a GUI for a C++ program

Community discussion for topics unrelated to the project.

Moderator: coordinators

Create a GUI for a C++ program

Postby B.Y.O.B. » Wed Oct 19, 2011 9:55 am

Hi,

a friend and I have written a tictactoe-program in C++, now we would like to create a GUI for it.
It should run on at least Windows and Linux, so we'll most likely use something like GTK+ or Qt.

Since the GUI of LuxRender is written in Qt I wanted to ask if it is possible to learn how to make a simple GUI in several weeks and if someone knows good tutorials about this topic.

regards
Simon
User avatar
B.Y.O.B.
 
Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: Create a GUI for a C++ program

Postby dougal2 » Wed Oct 19, 2011 10:07 am

IMO Qt is the way to go, and making the GUI should be a relatively simple task if you've already coded in C++. The Qt SDK even includes a graphical GUI editor to make things easier.
User avatar
dougal2
Developer
 
Posts: 3073
Joined: Mon Jan 14, 2008 7:21 am

Re: Create a GUI for a C++ program

Postby B.Y.O.B. » Thu Oct 20, 2011 12:59 pm

Thank you dougal2, I'm learning Qt now.
We'll most likely show the source code here once the GUI is finished :)
User avatar
B.Y.O.B.
 
Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: Create a GUI for a C++ program

Postby B.Y.O.B. » Thu Nov 17, 2011 7:44 am

Hi,

the GUI is finished now and I have learned many new things while developing it. Because of that I'll redo the whole code the next time so that it's logically clear, simple and clean. Also I need to fix some issues with including icons for the windows builds.

When the project is complete I'll show you the code here and upload builds for Linux and Windows, maybe even for Mac OS X.
User avatar
B.Y.O.B.
 
Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: Create a GUI for a C++ program

Postby rendermagic » Mon Feb 06, 2012 1:22 pm

B.Y.O.B. wrote:Hi,

the GUI is finished now and I have learned many new things while developing it. Because of that I'll redo the whole code the next time so that it's logically clear, simple and clean. Also I need to fix some issues with including icons for the windows builds.

When the project is complete I'll show you the code here and upload builds for Linux and Windows, maybe even for Mac OS X.


I was curious if you had any 'cross platform' issues/hurdles that you had to overcome with QT? Or, did it manage those concerns without much thought? The reason I'm asking is because I thought read a long time ago that QT wasn't exactly cross platform friendly. I hope I was misinformed :)
Render Magic
----------------
i7 950 - Not OC'd
24G DDR3 RAM
2 GTX 580s
rendermagic
Developer
 
Posts: 141
Joined: Wed Mar 23, 2011 2:32 pm
Location: Leading edge of a photon (California USA)

Re: Create a GUI for a C++ program

Postby B.Y.O.B. » Mon Feb 06, 2012 1:31 pm

rendermagic wrote:I was curious if you had any 'cross platform' issues/hurdles that you had to overcome with QT?

I had some issues getting the paths to the icons right on windows, but apart from that, no. Maybe a Lux developer or someone else who uses QT more often and has more experience with it can tell you more about such issues.

I'm coding on Linux and I still plan to compile a version for each windows and Linux, but the GUI code is still unoptimized.
I first wanted to do a cleanup of this part of the program and then release both code and binarys here, but until now I was too busy to look at it. What I also don't have done so far is translating the menu etc. into english, at the moment it's all german.
The program works, though.

So the project is still alive, it just sleeps ;)

Btw. I don't think I'll compile it for Mac OS X.

regards
Simon
User avatar
B.Y.O.B.
 
Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 0 guests