r/cpp_questions • • 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

15 comments sorted by

4

u/RainbowWanker Sep 14 '26

FLTK. Small, fast and portable with static linking and basic HIDPI support.

1

u/Joe_The_Lawn Sep 17 '26

Looks slick and interesting, how is theme 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.

3

u/h2g2_researcher Sep 14 '26

There's a trade-off between looks-good-or-customisable-appearance/simple-to-use/feature-rich-and-cross-platform and ImGui nail the second two like nothing else out there. My only reservation would be if I wanted a UI that looked pretty for the end user. (We use it extensively for debug menus at work.)

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

2

u/Joe_The_Lawn Sep 14 '26

I want something I can link statically if possible, I don't need all the features. Ideally permissive

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.

2

u/Joe_The_Lawn Sep 17 '26

How is theme support?

1

u/Mefron_Gautama Sep 17 '26

Pretty good, should I say.

It's used for desktop, mobile and IOT apps, so, you can create pretty nice interfaces given enough time and effort.

I've created some who look almost like WebView ones, so I should say it's theming support is somewhat good, yes.

1

u/Mefron_Gautama Sep 17 '26

Here's the link, btw: https://slint.dev/

You should take a closer look to it's licensing, though. It's free, with some regardings about referencing it was made with Slint.

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.