Advertisement

Cross platform GUI library - your suggestions?

Started by July 13, 2004 11:22 AM
7 comments, last by bastard2k5 20 years, 3 months ago
Hi guys. What do you suggest to use for simple multi-platform (win, Linux) GUI library? I have a plan to make a small strategy type game - something very distantly similar to Civilization (just to give you the idea). Actually i hope it will be something completely unique and unlike everything you have ever played - a game about politic. Now enough of this - until the game will be playable and will show if the gameplay is as interesting as it looks on paper :) Anyway, the visual side of the game will be with lot of diagrams, graphs, dialogs etc., so i started to think about a graphic library what is capable on drawing such things, rather than implementing it myself. I want to keep things portable, so native windowing API is out. Another aspect is that i want to keep things simple. If it will easier to write my own widgets using plain SDL, than find out the right way how to use the library, then i will go that way. I don't want to spend weeks learning a library, which (very likely) will never be useful for me again. I'm afraid that will be the problem with QT and GTK. (I have never programmed gui for Linux before, so correct me if i'm wrong) Ah, yes - C++ for programming language. Java and Python could be alternatives.
http://wxwindows.org/
Advertisement
Well, I don't think GTK+ nor QT will go anywhere for a while, as of yet. Since both of them are still being actively worked on, with both linux and windows. Python actually uses C API in order to do their GUI stuff, via Tkinter and wxPython, which are based on TCL/Tk, and wxWindows, respectively. So if you learn the C one, you should be able to do the python GUI stuff fairly easily. Although I would say, pick an API, and go with which one makes the most sense for you, since they all have fairly active development communities, they should stay around as long as you need them. Hopefully this information is helpful.
wxWidgets is excellent, and is very very easy to learn. It's the C++ equivalent of WinForms, IMO.
It has support for GL, too. And you can access it from python (wxPython).

Thanks for info, i will check out wxWindows
wxWidgets, the name changed recently.
It's my top pick, with Qt as second.
wxWidgets is completely freee, Qt is dual-licensed with GPL.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
If you do go with wxWidgets, get yourself a copy of DialogBlocks.

link

It makes writing a GUI a helluva lot easier, and the code it generates is not so ugly. Its Shareware so it doesn't really start bugging you until 90 days later, and if you do register, you can just get the student licence for $30 US.
Magmai Kai Holmlor: Doesn't QT have a "not so free" license on windows? I just remember some reason I thought GTK was better because of the licensing, but I don't remember the details.

SDL has sever GUI libraries, have you tried them? libSDL.org/GUI libraries
--monkey
Actually, you may be able to use Qt on Windows using the GPL'ed code. here, if the link works. The Freshmeat page on the Qt project. Although compilation is needed, but I assume that is fine. Otherwise, you can always use another library.

This topic is closed to new replies.

Advertisement