...

View Full Version : Cross OS GUIs



Dunna
10-24-2007, 04:55 AM
Is there any simple way to program a GUI in C++ that will properly cross the border of PC and MAC?

oracleguy
10-24-2007, 08:29 AM
Look into using wxWidgets. It is a cross platform GUI framework and a fairly nice one at that. http://www.wxwidgets.org/

liorean
10-24-2007, 12:49 PM
Do note, however, that you need to conform to different conventions on the different platforms. Java made the mistake of having one single UI on all platforms, with the result that early Java applications felt wrong on all platforms, and looked like crap compared to what the user was used to. Situation is better today, but in general: It's more important that you conform to the platform conventions than almost anything else about the UI, because that's the difference to the users between a program that they feel at home with and a program that they feel strangely repelled by, despite the functionality being just what they want.

Gox
10-24-2007, 11:49 PM
Look into using wxWidgets. It is a cross platform GUI framework and a fairly nice one at that. http://www.wxwidgets.org/

Alternatively you could look into QT http://trolltech.com/products/qt

Qt applications run natively - indistinguishable from native applications - compiled from a single source code-base on all major platforms:

Qt is native on Windows
Qt is native on Mac OS X
Qt is native on Linux/X11


I've used it twice in the past for small projects and it seemed to work nicely. No major issues, and fairly easy to learn.

The following is a screencap of a quick (and dirty) Deal Or No Deal I whipped up just to practice some c++ and QT. This shot is running on Unix, but works just as well on Windows (had to tweak small layout/font issues).
http://img96.imageshack.us/img96/7879/screenshotau0.jpg

Spookster
10-25-2007, 02:39 AM
Alternatively you could look into QT http://trolltech.com/products/qt


I've used it twice in the past for small projects and it seemed to work nicely. No major issues, and fairly easy to learn.

The following is a screencap of a quick (and dirty) Deal Or No Deal I whipped up just to practice some c++ and QT. This shot is running on Unix, but works just as well on Windows (had to tweak small layout/font issues).
http://img96.imageshack.us/img96/7879/screenshotau0.jpg

Yeah Qt is not bad. We use it now at work for all of our GUI stuff. We were previously using LabView.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum