Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Cross OS GUIs

  1. #1
    Regular Coder
    Join Date
    May 2004
    Location
    New Hampshire, America
    Posts
    246
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Cross OS GUIs

    Is there any simple way to program a GUI in C++ that will properly cross the border of PC and MAC?

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Look into using wxWidgets. It is a cross platform GUI framework and a fairly nice one at that. http://www.wxwidgets.org/
    OracleGuy

  • #3
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #4
    Gox
    Gox is offline
    Regular Coder Gox's Avatar
    Join Date
    May 2006
    Location
    Ontario, Canada
    Posts
    392
    Thanks
    2
    Thanked 20 Times in 20 Posts
    Quote Originally Posted by oracleguy View Post
    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

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by Gox View Post
    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.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •