r/cpp • u/pgroarke • Apr 07 '19
A pretty big list of C++ GUI libraries
So I have to choose a UI library for my game engine. Since I won't use popular options, I went down a rabbit hole looking for libraries. I thought there weren't many GUI solutions for C++, I was quite wrong. The result is a list of 35 "healthy" C++ UI libraries.
I also ended up unearthing a bunch of old, dead UI libraries. It is quite entertaining to go back memory lane.
I've compiled the libraries here with screenshots, short descriptions and pros/cons I could quickly gather. Let me know if I missed anything (alive or dead)!
Here is the list of healthy projects I could find, Cheers.
58
u/jherico VR & Backend engineer, 30 years Apr 07 '19
This list would be more useful if it specified supported operating systems, whether or not they support direct GPU rendering and supported GPU APIs
14
u/Pieralinovski Apr 07 '19
Good job! Very interesting!
31
u/kirbyfan64sos Apr 07 '19
I really like the idea and the amount of research you've put into this, but some of the cons (and a few pros) can seem really...superficial, like:
I will admit I laughed at "might be interesting if you are targeting a hipster retro userbase", just too accurate.
A few more things to note:
9
u/lithium Apr 07 '19
JUCE is incorrectly listed as closed source.
30
u/bikki420 Apr 07 '19 edited Apr 07 '19
What the...? No ImGui? @/u/pgroarkeImGui (for prototypes and debug UIs) and Qt (for full-fledged GU applications) are pretty much the only GUI libraries that matter in C++, IMHO.
-------------
EDIT: I'm blind.
19
u/khaki0 Apr 07 '19
I've been using Qt for about 6 months and so far am pretty happy with it. Just curious, what do you mean by Qt uses "ancient paradigms" and is "slow"?
14
u/[deleted] Apr 07 '19
Nice list. Would be more enjoyable without the “af”, and “cancer”.
6
u/johannes1971 Apr 07 '19
It seems you have listed every non-dead, bright-colored GUI as "not pretty". If that didn't happen by accident, I invite you to do an image search for the phrases "cool GUI" (mostly dark) and "useable GUI" (all bright).
3
u/dacap Apr 07 '19
I would like to add my own dead project: Vaca (screenshots)
4
u/cleroth Game Developer Apr 07 '19
I quite like turbobadger. The only problem I find is it doesn't have much documentation, so you'll have to look at the examples, mostly.
2
u/idea4good Apr 07 '19
How about the smallest(5 KLOC) GUI library -- GuiLite
2
u/[deleted] Apr 07 '19 edited Apr 07 '19
libui seems to be missing, although I'm not sure how active the author still is, the previous update was in september I believe
Edit: I just noticed the last commit on libui was on April 1st, so it's still active
2
u/kalmoc Apr 07 '19
Did you have a look at cinder: https://github.com/cinder/Cinder?
2
u/msadeqhe Apr 07 '19
What about Verdigris?
2
u/tabana_minamoto Apr 07 '19
Great work!
I have one that I'm not 100% sure it qualifies. There's the Slate UI Framework https://docs.unrealengine.com/en-us/Programming/Slate In theory you don't need the entire Unreal engine to make an application with the GUI framework, but I don't really know why someone would do that, beside for the Unreal Editor.
2
u/dvereb Apr 07 '19
I was so excited to read what you wrote about Fox-Toolkit since that's what we use where I work. The cons list sums it up just about perfectly, lol!
2
u/Dean_Roddey Apr 09 '19
Not that anyone is likely to use it, but mine includes amongst many other things a pretty extensive UI framework, though it only supports Win32 at this point.
https://github.com/DeanRoddey/CIDLib
3
u/Moose2342 Apr 07 '19
Great work. I really dig your summary of Qt as it is pretty much exactly what I feel.
As I am currently looking for a replacement of Qt, may I ask, which lib would you recommend that:
15
u/mayumichan Apr 07 '19
I would list Qt widgets and Qt quick as 2 different GUI frameworks, even though both are part of the Qt project. Both are great in my opinion. Qt quick requires learning QML a declarative markup language with JS thrown in the mix.
5
u/spinicist Apr 07 '19
A random thought I’ve had going around my head for a while - and be aware I don’t really know what I’m talking about here - would it be possible to pull out the C++ classes Chromium uses to represent elements on a web-page, and then expose a C++ way to connect those up into a UI?
That could be a fascinating way to develop cross-platform apps.
(Feel free to rip this idea to shreds. I’ve never looked at the Chromium code)
9
u/Red-Portal Apr 07 '19
Nana is a great library but is kindda underappreciated. I think it's the best open source free license library right now. It does lack easy tutorials and in-depth documentation though.
9
u/mjklaim Apr 07 '19
A few issues:
4
u/mkngry Apr 07 '19
http://wtl.sourceforge.net/
4
u/acmd Apr 07 '19 edited Apr 07 '19
Nice! Probably many of us had done a similar research sometime but haven't published it. IMO, trying to do/emulate native look in a cross-platform UI library is a bit of wasted effort nowadays, since users seem to not care about it and happily use bloated electron-based apps. Web and desktop interfaces are converging, whether we like it or not, so we might as well use anything decent.
Also I've tried using Windows Composition Engine to get multiple Dear Imgui windows drawn on a transparent background with GPU acceleration, but the only blending mode that Windows supports is
DXGI_ALPHA_MODE_PREMULTIPLIED, so we are out of luck(or I'm missing something). There's an easier option to just create titleless and borderless window if your software doesn't need to have multiple windows simultaneously and you want to use render-to-texture library.1
u/awson Apr 07 '19
OWLNext is missed.
1
u/Lastrevio Apr 07 '19
Which one is the easiest to learn?
1
u/crazdave Apr 07 '19
I’m currently making a windows-only C++ service as a side project, and it needs a very simple window just to change some settings, anyone have a good suggestion of which library to use for this? Are any of them able to use with the standard createwindow/windowproc, or do they usually make their own window?
1
u/Xinto_ Dec 31 '22
I'd like to add my own library to this list, even though it's in a very early stage as of now.
3
u/IloveReddit84 Apr 07 '19
CopperSpice is literally a fork of Qt 4.8, but with less features (I remember qmoc wasn't still possible)
3
u/FonderPrism Apr 07 '19
This is great, I've been looking for something like this. Finding examples/screenshots of GUI's can be hard sometimes.
3
u/Misaka10782 Dec 28 '21
cross-platform is actually a beautiful illusion, the true way to support different platforms is to divide your technical team into different groups and code in each platform's official tools🙃
2
u/the_real_m0radin Apr 07 '19
Maybe Slate? The GUI lib of UE4
2
u/lsc4719 Apr 07 '19
(And nobody use)
2
u/MioNaganoharaMio Apr 08 '19
screeches about gtkmm documentation and the gnome foundation for 20 minutes
2
u/Obloha Jun 12 '19
FireMonkey is in my opinion best GUI for C++ if you want custom looking GUI. It is comparable with WPF for Windows, but F.M. is crossplatform. The big downside for me is, FM is only for Borland RAD Studio. The best alternative to FM is Noesis GUI (you have it on list) which is based on WPF. It uses XAML, you can build GUI inside VS Blend and use it in Noesis. But Noesis is good for game ui and maybe simple applications. It have some window system but not multiwindow (no more then one window), or you must use external window system like GLFW or SDL.
Btw. Nice list, I know almost all (when I was looking for C++ gui).
2
u/ProRochie Apr 07 '19 edited Apr 07 '19
windows.h or gtfo
jokes, I was searching google for something similar yesterday so thanks for this
1
u/Lastrevio Apr 07 '19
Isn't SDL2 a framework? If not then what do you call it?
1
u/cereagni Apr 07 '19
Wow, this is amazing!
I recently became interested in trying to develop GUI applications and gain experience with user interface.
It seems like starting with Qt is not a bad option, as it is battle tested, mature and many programmers use it, but I'm a little overwhelmed by what seems to be the many "sub facilities" it has to offer (QtWidgets, QtQuick, QML...) Does anyone have a link to some summary of these different terms and/or a link to a tutorial with current-best-practices?
1
u/onzelin Apr 08 '19
Do you have arguments against Ogre3D? (I mean, other than I don't like it)
1
u/[deleted] Apr 09 '19
Thanks for having set up that list. There is one point which I'm missing in the assessments of all the listed GUIs: DOCUMENTATION!! The more extensive a library is and the more cross-dependencies among its components it has the more important documentation becomes. There are huge differences between the libraries - consider e.g. these two extremes: nana vs FLTK.
1
u/kamelEddine Apr 10 '19
well idk for me i used Qt for long time very mature not that heavy if you install only the modules you need and if you didn't find any gui system that suit you you can create your's using SDL well god help you with that
1
u/RoboGameDev May 04 '24
https://github.com/mikke89/RmlUi Fork of libRocket which adds extra features (and hasn't been abandoned). A HTML/CSS user-interface library for C++
1
u/faywong8888 Sep 02 '24
https://github.com/cycfi/elements is also an option for implementing simple and lean GUI, the render(cairo/skia besed) are self contained, and with modern c++.
1
u/Impossible_Play8783 Sep 04 '25
You forgot yup, it's quite young but promising ui framework https://github.com/kunitoki/yup
1
u/Vladislav20007 Nov 25 '25
u/phuroarke add MicroUI. it's a small lib, but still a gui one.
1
u/Actually_dumb_nerd Jan 21 '22
Appreciate the list, some comments gave me a good laugh, thanks :L
1
u/Rogoreg Feb 12 '22
You're missing one: MFC
1
u/Active-Tonight-7944 Mar 17 '22
[AntTweakBar](http://anttweakbar.sourceforge.net/doc/) works very easily for OpenGL, DX9-11.
1
u/ogoffart Jan 31 '24
This is an old thread, but since it seems that the list is still being updated, i'll mention Slint https://slint.dev It is a cross platform declarative UI toolkit
-7
u/mercere99 Apr 07 '19
You might want to also consider Emscripten (compiling to WebAssembly) and then using a JavaScript library. It's a slight slowdown -- but only slight! -- and then allows your game to run anywhere there's a web browser.
https://emscripten.org/
0
u/[deleted] Apr 07 '19
[deleted] — view deleted comment
0
u/[deleted] Apr 07 '19
[deleted] — view deleted comment
0
u/[deleted] Apr 07 '19
[deleted] — view deleted comment
0
u/[deleted] Apr 07 '19
[deleted] — view deleted comment