Michael L Torrie wrote:
On Mon, 2006-10-23 at 14:12 -0600, Adam H. Peterson wrote:
Eduardo Sanz Garcia wrote:
I have to write a GUI in C++ for running on Windows. I don't have
experience about toolkits on Windows. Do you have sugestions?
What license constraints are you under? GTK+ is what I usually use (on
Linux, but it's also available for Windows) and it is LGPL'd.
GTK works very well under windows. There are some excellent C++
bindings for it called GTK-- (or GTKmm).
What compiler are you planning to use? Visual studio, or MingW GCC?
I am thinking on using MinGW
If you go the GTK route, you'll probably want to use the glade widget
designer and then use libglade-- in your program to read in the gui from
the xml file (that's the best way). It's a bit of a learning curve but
not too bad. http://gladewin32.sourceforge.net/
I've also
heard good things about wxWidgets, which is also under an open source
license, I believe, that is semi-permissible.
wxWidgets is very much like MFC, which I despise. But if you can get
past its MFC-nature (message maps etc) it's probably a good choice.
There are a few GUI designers and maybe even an IDE. There are
libraries for developing on Visual Studio, but no integrated GUI
designers.
I heard that Qt is good. How much is it?
I don't know about that. I know a lot of people like Qt (I'm not one of
them -- it gets its fingers into everything IMHO), and I think it's
available under the GPL, but I'm not sure if that's Linux-only. If you
really want to use Qt, talk to TrollTech (trolltech.com). Looks like a
developer license costs about $2,000.
As Scott says, Qt is free under Windows but has the following
restrictions:
- Your code must be under the GPL. No other license is allowed unless
you buy the developers license and then you have royalty free
distribution rights
- You can only use MingW GCC (g++) compiler. Visual Studio is not
supported.
Whatever widget toolkit you choose, if you've had no prior event-driven
GUI programming experience, then you're in for a bit of a learning
curve. It's very different than procedural programming. You have to
deal with even callbacks, state handling, etc. And if you need to add
threads to the mix, that's even more complicated. For GTK and threads
on windows you have to use some very special techniques. But GUI
programming with these modern toolkits is quite fun.
Michael
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list