#1 Members - Reputation: 696
Posted 29 December 2011 - 06:25 PM
Requirements:
-Should be available on windows and linux (mac would be a welcome plus)
-Lightweight and easy to both install and use (no much time to spend on the project, and would rather spend it on the core than the GUI)
-Based on standard c++
Bonus:
-Python bindings (I might want to add scripting capabilities)
-OpenGL support
Not required:
-I don't need it to look like a native app (no host widgets used under the hood required), as long as all common widgets are provided and the interface is nice to look at.
-I don't need the toolkit to provide other facilities (network/threads/sound/database...): boost and other tools are good enough, and probably even better, and I don't need many other features anyway, since it would be an image manipulation app.
I could consider to use Java, but I'm going to do quite intensive image processing and there are wonderful c/c++ libraries which could help (FreeImage and the like) not to mention the performance issues.
I'm open to suggestions on this as well, though, if you think that a good option would be another language (that is Java: no python, as I'm not good enough with it, and no c#, since .net is only theoretically cross platform :-)
There could be more to say, but let's start with that. Any advice?
Thank you all!
#3 Members - Reputation: 2042
Posted 29 December 2011 - 07:46 PM
Though there are also reasonably mature bindings for Qt, too. I can't contrast it to wxWidgets as I've never used that library, in or out of Python.If Python bindings are important to you, then that throws a lot of weight behind wxWidgets...
cignox1: depending on how lightweight you really want it, simply using glut/freeglut might be an option. There's stuff for menu bars, context menus, etc, and it's pretty easy to hack together some basic buttons with OpenGL. I fear the reality of the situation is that all the mature GUI libraries do indeed come with a lot of other baggage, due to a combination of N.I.H syndrome, their age/legacy, cross platform support, etc
#4 Members - Reputation: 257
Posted 29 December 2011 - 08:55 PM
+1 for wxWidgets here too. Qt is advertised as a GUI toolkit but it has grown into an entire framework, so it's ridiculously heavy if you just want a basic interface. I'm not a fan of Qt for this and a couple other reasons to be quite honest.
As for Python bindings, I'm pretty sure there are bindings for both wx and Qt. I remember doing Qt/KDE programming in Python when I was using a Linux operating system. (Unless I'm being mistaken with Ruby programming.)
#6 Members - Reputation: 228
Posted 30 December 2011 - 04:05 AM
#7 Members - Reputation: 696
Posted 30 December 2011 - 05:39 AM
Unfortunately there's not a lot of choices for cross-platform GUI toolkits if you want to restrict yourself to C/C++. Not sure why exactly, my best guess is that Java has covered the cross-platform requirement for quite a while now.
I don't refuse to consider more options: indeed, working with java would be perhaps more pleaseant and it would simplify implementing a plugin system, should I ever reach that point. I could do a deeper search to check if libraries to handle images i/o exist, expecially for HDR and other non web related formats.
If You care about python embedding and GUI, why not to try to create the whole app in Python, and just make the speed critical parts in C++?
I'm not good enought with phyton to even consider it as a viable option. The only reason to have python bindings is that once the app core is completed, it would be nice to allow for extensions.
That said, it does not hurt to give it a look to see if with the right IDE (and a GUI designer) I can change my mind :-)
I though to add a word about the license I need: as I don't have any idea about what I will do with the code, I would like to be left free to make a decision later in the process, so no GPL. LGPL would be OK though, I suppose. Both wxWidgets and Qt satisfy that requirement (and of course Java and Python do).
#8 Members - Reputation: 696
Posted 30 December 2011 - 04:53 PM
-Java: I have been unable to find a good image input/output library supporting common image formats suitable for graphic image manipulation, something similar to FreeImages or DevIL. Any advice on this?
-FLTK for c++ as a GUI toolkit. Any opinion to share about that lib?
#9 Members - Reputation: 2762
Posted 30 December 2011 - 07:54 PM
Qt also has QML, and ECMAScript-like language for contemporary software development style, so you can engage in current development modes as well as legacy C++ ones.
Professional Free Software Developer
#10 Members - Reputation: 842
Posted 31 December 2011 - 01:47 PM
Although you should be careful when choosing its version:
http://en.wikipedia.org/wiki/FLTK#Versions
There a multiple examples of using FLTK with OpenGL:
https://www.google.com/search?q=fltk+opengl
As for Python bindings, see:
http://pyfltk.sourceforge.net/
http://www.fltk.org/wiki.php?LC+P139+TC+Q
#11 Members - Reputation: 2408
Posted 02 January 2012 - 08:29 AM
Plus I don't think I could ever go back to GUI design in C++ without Qt's signals/slots and metaobject system.
#12 Members - Reputation: 3283
Posted 02 January 2012 - 01:08 PM
I personally have no experience, only recently looked at it as an option for cross platform C# development ( as it's the preferred gui kit for Mono ); but I figured it would have a proponent or two here.
I only recently started working with Qt, but frankly its bigness is to a degree a strength, as it makes up for the otherwise abysmally lacking C++ standard libraries. When I'm used to working with the .NET Framework libraries, having something like Qt is extremely refreshing.
#13 Members - Reputation: 696
Posted 03 January 2012 - 04:15 AM
@Serapth: I've also considered GTK, but as far as I know it is C, not C++, and after several years of C# and Java I don't feel like going back to non OO interfaces.
#14 Members - Reputation: 252
Posted 03 January 2012 - 01:09 PM
#15 Members - Reputation: 452
Posted 03 January 2012 - 02:29 PM
I had to move away from it though as I had to release a commercial application with it and the license prohibits that unless you purchase it.
Now I'm using wxWidgets. The difference is clear. After a few weeks of usage I run into broken widgets (wxListCtrl not callbacking on selection changes in Win32 but does on Linux, to pick an example..) and I have to work around the broken stuff but overall it works. It's dockable windows features are not as solid, easy to use or nice-looking as Qt's but it's still free. Which is important too. I do not regret my choice.
#16 Members - Reputation: 434
Posted 04 January 2012 - 02:41 AM
Actually, Qt can be used under the terms of the LGPL, so you are allowed to release commercial applications with it without buying. The only advantage you get from buying it is the additional support you get and the right to distribute your application with Qt linked statically.I had to move away from it though as I had to release a commercial application with it and the license prohibits that unless you purchase it.
#17 Members - Reputation: 452
Posted 05 January 2012 - 01:51 AM
+1 for Qt. I've been using Qt for several years and really love it. Not only is the library itself beautifully structured (imho), the documentation is great, too.
Actually, Qt can be used under the terms of the LGPL, so you are allowed to release commercial applications with it without buying. The only advantage you get from buying it is the additional support you get and the right to distribute your application with Qt linked statically.
I had to move away from it though as I had to release a commercial application with it and the license prohibits that unless you purchase it.
This is true of course, and another reason was that I couldn't use dynamic linking. At the time of posting I didn't seem to be able to edit my post, but now it works so I'll make sure I edit that in that to avoid any confusion. Thanks!
Agreed about their documentation.






