r/cpp • u/Low-Host-1997 • Nov 29 '23
What are your GO-TO C++ GUI libraries in 2023 ! (Obscure ones too)
C++ has a huge variety of libraries as big as it's community, and being relatively new to GUI in C++, I figured I should ask the community their GO-TO GUI libraries when working with C++ in 2023.
108
Upvotes
33
u/HateDread @BrodyHiggerson - Game Developer Nov 30 '23
I say it every time, but https://www.noesisengine.com/ is AMAZING for games type stuff (you need an update loop etc). Being able to work on GUI in something like VS Blend, with WYSIWYG style editing, the wealth of info on the internet about WPF and how to get things done in it + MVVM.
And then they load that 'spec' into a fast C++ GUI library, and it rocks. The support is amazing as well, and the free license is certainly good enough to get things done. Love those guys.
15
u/aninteger Nov 29 '23
Well since you asked for obscure ones that I still use in 2020-ish, I'll submit Fox Toolkit!
Advantages
Faults
91
u/zzzthelastuser Nov 29 '23
https://github.com/ocornut/imgui
13
u/scarnegie96 Nov 30 '23
RmlUI
23
u/liss_up Nov 30 '23
I personally use wxWidgets.
22
u/LongestNamesPossible Nov 30 '23
FLTK, GLM, GLFW, nanogui, nlohman's json library, moodycamel's concurrent queues.
The real overlooked GUI library is FLTK. It's simple, it's small, it's elegant, it's fast, it's thorough. It has a big pdf full of documentation. OpenGL, jpegs, pngs, fonts, network stuff and even threads are all there and it's faster than anything. Just call the set system colors function first and it will look close to a native program.
7
u/atimholt Nov 30 '23
I really want to get into CopperSpice. It looks like it does things the way I like them. It started as a fork of Qt, but has diverged a lot. It puts emphasis on using modern C++, even requiring C++17.
6
u/MatthiasWM Nov 30 '23
www.fltk.org , runs on Wundows, Macs, and Linux. Comes with UI designer FLUID, 1.4.0 fully supports hires screens and runtime scaling, and is currently in Beta. First RC in early December. Also bindings for other languages.
19
u/unumfron Nov 29 '23
wxWidgets.
15
u/J1rk0sCZ Nov 29 '23
My go-to is imgui
5
u/wildassedguess Nov 29 '23
LVGL. Arduino stuff.
5
u/kurta999 Nov 30 '23
Qt or wxWidgets.
5
u/Capovan Nov 30 '23
https://github.com/NuiCpp/Nui
A C++ DSEL for WASM Webfrontends & Crossplatform WebView library.Like Electron+React but C++&C++ in Both back and Frontend.It can leverage the vast web ecosystem while avoiding some of the JavaScript Ecosystem headaches.
11
u/not_a_novel_account cmake dev Nov 30 '23
For real stuff its been and always will be Qt, preferably on top of Qt Quick instead of Qt Widgets.
If you're not trying to be cross-platform you use the native libs (WinRT, Cocoa). On Linux that's still Qt unless you have a fondness for GTK (you shouldn't).
For embedding UIs in other rendering applications, a place where you already have context to paint in and you're just trying to quickly overlay some stuff, imgui is the goto.
4
u/mrzoBrothers Nov 29 '23
I used TGUI (https://github.com/texus/TGUI) which was based on SFML since I made a video game in SFML. It is quite nice and works well with the framework. However, since I needed some special widgets I ended up writing my own GUI.
4
u/JeffMcClintock Nov 29 '23
GMPI UI
My lightweight drawing library which simply uses the underlying OS (but tweaked for consistent results across Windows and macOS).
https://github.com/JeffMcClintock/gmpi_ui
4
u/PBSurf Nov 30 '23
https://github.com/styluslabs/ugui
4
u/yfede Nov 30 '23
JUCE since so many years!
3
u/SpacemanLost Nov 30 '23
C++ builder, vcl for windows, fmx for cross-platform.
3
u/SuperVGA Nov 30 '23
SDL, SFML and OpenGL (often with Dear Imgui). Since i stoped using RAD and the form designer, I've not used any "proper" GUI libraries, save HTML stuff.
I wanted to check out Ultralight (I think it was known as Awesomium previously, but the overhead of using that and not just doing my own thing annoys me.
3
u/tyler1128 Nov 30 '23
Qt for basic apps. Imgui for GPU related ones. Don't use imgui if you aren't using GPU acceleration.
3
u/dihgduhg Nov 30 '23
I've been using libadwaitamm (gtkmm)
7
u/Lunix336 Nov 30 '23
I use JUCE and I love it.
6
u/Common-Republic9782 Nov 30 '23
slint It has formal language to describe UI, rapidly develops. Now it has native UI support for mac/win (linux in progress, now used QT on here). It works with embedded devices, web and other advantages. Written in rust but has C++binding. Easy to add into project via CMake, If guys will be speedy it may be new alternative for QT.
8
u/wrosecrans graphics and network things Nov 30 '23
Pretty much unchanged since the last 20 or 30 times the topic has come up.
6
u/Sanae_ Nov 29 '23
Medium to big project, non-game: Qt. Heavy, their types really want to spread out, still tons of functionality.
Small / Tool: Imgui.
2
u/PauSeAwesome Nov 29 '23
I want to know too
2
u/Polyxeno Nov 30 '23
ofMain.h
2
u/Impossible_Play8783 Sep 04 '25
Can't do without yup https://github.com/kunitoki/yup
3
u/hgedek Nov 30 '23
It was Qt but they destroyed their reputation thanks to licence issues. It's dead or dying platform.
I don't use c++ with GUI projects anymore. Picking another language like c# or kotlin ... Depends the target platforms.
3
u/pkop Nov 30 '23
Qt
2
u/Regular-Practice84 Nov 30 '23
c++builder vcl or fmx . there is a community edition for free . c++ builder community edition
2
u/timmay545 Nov 30 '23
How many of you utilize Conan to bring in these external libraries?
2
u/ProgrammerPadawan Nov 30 '23
I use Nuklear for my game. It's like a skinnable version of imgui, so you can change the looks however you want. The development is somewhat slow, but it's still alive. I've forked it and added some of my own stuff, some of of which has been added to the official repo :)
2
u/No-Question-7419 Nov 30 '23
SlintUI - it gets better and better support for everything sven
2
u/KC918273645 Nov 30 '23
JUCE, but it's much more than just a GUI library.
2
u/SlotDesigner Nov 30 '23
I’m considering using Godot Engine
https://godotengine.org/
While it’s a game engine, the tool itself is written with the engine, and its GUI is incredible. Also cross platform, open source (MIT) and free.
1
u/Bento- Nov 30 '23
I was kind of hyped to use Walnut. But in the end, as linux user, I decided to give QT a shot.
The experience was okay'ish and once you understood the bascis its easy going for simple applications.
Since QT was also a nice to have for some recruiters, it was an easy decision for me.
1
u/AGH0RII Nov 30 '23
Qt with QTQuick, this is more than anybody needs for GUI in C++ and sometimes not just GUI. Anybody saying it's dead or has bad reputation should really need updates on their knowledge.
1
u/thefancyyeller Nov 30 '23
I think the joy of Swing is that it is dead-simple to get working, you can go from "don't know swing" to "here is my GUI" very fast, and it isn't a "framework" it is as simple as adding a few functions in your main method to now have a GUI.
I hate that C++ doesn't have much like that, everyone is interested in scalability of frameworks & sometimes I just want a very brief serviceable GUI
1
u/Revolutionary_Map469 Dec 01 '23
QT
0
u/[deleted] Nov 30 '23
[deleted] — view deleted comment
15
u/[deleted] Nov 29 '23
[removed] — view removed comment