Page 1 of 1
Recommendations for a GUI Library?
Posted: Wed Aug 12, 2009 1:47 pm
by XianForce
Hey guys, I've been wanting to try to make a level editor for some time now, I made a real simple one, but I wanna make one that looks nice and such, so can any of you recommend a GUI Library? I don't care much about cross platform support, I use Windows, though, so it needs to work with windows. Also I'd prefer It be a C/C++ Library, but that's not completely necessary.
Thanks guys =p
Re: Recommendations for a GUI Library?
Posted: Wed Aug 12, 2009 2:31 pm
by Pickzell
Why not just make your own? Plus if making a GUI in C/++ is to hard for you then you can make it in a game specific language.
Re: Recommendations for a GUI Library?
Posted: Wed Aug 12, 2009 3:00 pm
by gordon
I've heard good things about
wxwidgets
Re: Recommendations for a GUI Library?
Posted: Wed Aug 12, 2009 4:31 pm
by dani93
I'm trying Qt at the moment. It is pretty easy to creaty a GUI with it.
Example code to create a button:
Code: Select all
// include Qt-files
#include <QApplication>
#include <QPushButton>
int main (int argc, char *argv[])
{
// pass arguments to Qt
QApplication app (argc, argv);
// create a new button with the text "button text"
QPushButton *button = new QPushButton ("button text");
// connect a slot to a signal ("set a callback" in other libraries like GTK+)
// if the button is clicked, the application quits
QObject::connect (button, SIGNAL (clicked ()), &app, SLOT(quit ()));
// show the button
button -> show ();
// run the application
return app.exec ();
}
In my opinion it is much easier than GTK+, cause you can use C++-constructors and methods. And if you don't like it, you can use "Qt-Creator" to create GUIs graphically and then use them in your application.
I started learning Qt because I want a GUI (menubar etc.) around a SDL application. But it looks like it only works with OpenGL...
Link:
http://qt.nokia.com/
Re: Recommendations for a GUI Library?
Posted: Wed Aug 12, 2009 8:13 pm
by XianForce
Pickzell wrote:Why not just make your own? Plus if making a GUI in C/++ is to hard for you then you can make it in a game specific language.
Erm, it has nothing to do with it being hard... its just a waste of my time.
If there's already a good GUI library, why make my own?
That just distracts from the real goal of making a level editor -.-
Re: Recommendations for a GUI Library?
Posted: Thu Aug 13, 2009 5:20 am
by M_D_K
wxWidgets is very good
Pickzell wrote:Why not just make your own? Plus if making a GUI in C/++ is to hard for you then you can make it in a game specific language.
There really is no point in rolling your own, as avansc would say "work smarter, not harder".
Re: Recommendations for a GUI Library?
Posted: Thu Aug 13, 2009 6:28 am
by Netwatcher
I'd give it to wxWidgets, my personal choice with it would be Python but you can use it with C++ too.
wxWidgets home
Pickel wrote:Why not just make your own? Plus if making a GUI in C/++ is to hard for you then you can make it in a game specific language.
He's trying to write a level editor not to reinvent the wheel
(EDIT: lol, noticed it's a reference to "Rolling your own"... did I just made a pun?)