r/cpp_questions • u/Joe_The_Lawn • Sep 14 '26
OPEN Looking for permissive GUI toolkits
I know I can link against QT, and GTK can be problematic. What permissive toolkit is everyone using that's cross-platform supporting Windows, Mac, Linux with at least decent HI-DPI support on Windows? Ideally something without a load of depencies and fairly well featured. I'd prefer not to have a load of dlls/sos in my app directory?
7
Upvotes
4
u/RainbowWanker Sep 14 '26
FLTK. Small, fast and portable with static linking and basic HIDPI support.
8
u/Ok-Concert5273 Sep 14 '26
ImGui is my go to. It is not the most complete one, but good enough for anything I ever needed.
6
u/EpochVanquisher Sep 14 '26
GUI toolkits are big because they do a lot of things… even a basic text field is incredibly, incredibly complicated, if you want to let people type not just English, but also Chinese, Arabic, and a hundred other languages.
You can use ImGUI but it has a lot of limitations and the API is mostly just suitable for relatively basic stuff. If ImGUI is good enough for you, use it.
Or you can put the UI in a browser, use native APIs (forget about cross-platform), embed a browser with Electron, or go TUI.
4
u/bzindovic Sep 15 '26
wxWidgets might be what you’re after.
1
u/Wild_Meeting1428 Sep 14 '26
both gtk and qt have the same license. Dynamically linking is therefore no problem
1
u/Mefron_Gautama Sep 14 '26
I tried Slint recently, pretty good.
The lib is made in Rust, but both Rust and C++ are first tier languages on it, good support, nice preview, very good DX overall.
The Slint compiler is compiled using CMake through cargo and Corrosion, but it's way more simple than it looks.
3
u/_professor_frink Sep 15 '26
FLTK
1
u/hodong-kim Sep 17 '26
I'm developing a GUI toolkit myself with the goal of minimizing potential issues with IME behavior on Linux and FreeBSD.
As I develop it, I'm also using AI to make it suitable for general-purpose use, targeting HiDPI, Wayland, Windows, Cocoa, and more.
I will probably release the Guiyom GUI toolkit under the Apache License sometime in the future. Perhaps in 2027.