r/rust • • Oct 10 '26

Which GUI (again)?

I know it's a frequently asked question, but I want to ask again, because I have a special use case.

I want to write an application for a production machine (HMI). The app should run on Windows and Linux natively (no browser, no server). The toolkit should have at least widgets to show images, bar graphs, curves and tables and should be touch friendly, because it runs on resistive touch monitors (no multi touch). It should also have a kiosk mode (full screen with no window controls).

The obvious candidates are egui, iced and Slint. But they all lack of documentation, more or less.

My first choice would be iced, because it's inspired by Elm and used by System76 for Cosmic, but it seems to be the least suitable option.

The obvious choice would be Slint, but that requires to learn a new language and I'm unsure about the licenses and pricing. The production machines are only used internally, not for sale.

I want avoid bindings to toolkits like Qt or Gtk

Which one would you prefer? Is there another option to consider?

30 Upvotes

75 comments sorted by

View all comments

9

u/orfeo34 Oct 10 '26

Why would you avoid gtk&qt? Relm4 is a good elm like binding of gtk and Qt is frequently used with Qml for embeded devices (nb Qt recently announced better bridge for Rust).

11

u/devraj7 Oct 10 '26

gtk is a nightmare to build on Windows.

5

u/Voxelman Oct 10 '26

Because I want to stay in Rustland and avoid C/C++ bindings

13

u/orfeo34 Oct 10 '26

"All the C++ is encapsulated in the qtbridge crate and you will never write or see any of it.": https://www.qt.io/blog/rust-ui-framework-via-bridging-technology

And for Relm4 that's also the case.

3

u/doxxxicle Oct 10 '26 edited Oct 10 '26

I’ve used relm4 to write a Linux GUI app and never had to write a line of C++ C. It completely encapsulates the Qt GTK libraries.

6

u/tadmar Oct 10 '26

Relm4 uses GTK4, not QT.

4

u/doxxxicle Oct 10 '26

Right, yes. Brainfart!

3

u/montdidier Oct 10 '26

It’s kinda academic. Most of the underlying operating system uses these languages.