62
GUI library for C? (lemmy.dbzer0.com)

There are some times that I make something and the terminal isn't enough. I want to make it user-friendly and add buttons and dropdowns and stuff. I mainly write C, so I want a well-known and good GUI library for C. I have tried learning Qt but the documentation was awful and all the examples were for C++ or Python. I also am aware about libraries like imgui but it's more for debugging UIs I think and not for normal applications that end users use.

I also would like the library to be platform-agnostic, or at least just work with Linux because that's what I am using.

If you also code in C, what do you use to make GUIs? What do you suggest me to use?

Thanks in advance.

Also, if anyone suggests Electron or anything involving a browser, I will find them and remove one electron from each atom of theirs, turning them into smoke.

you are viewing a single comment's thread
view the rest of the comments
[-] ulterno@programming.dev 5 points 4 days ago* (last edited 4 days ago)

+1 for being the kind of guy that goes to a Windows problem thread and suggests installing Linux (I have done that just for fun), but for Rust.

I am currently learning Rust in my freer time and found "Rust by Example" not as appealing.
For context, I learnt C when I was a kid, following "Programming with C - Schaum Series" and loved how it started by giving an idea of the memory representation for all data structures the way it is abstracted (or not so much) in C. Later in Uni, I hated "Let us C" (even though it seemed to do a similar thing at a glance) and "Let us C++" and just learnt the languages on the go as required by courses and projects (also simply used a C++ reference book instead of a course styled one).

Now I see "Rust by Example" and see some parts not having been explained in the beginning, for which I would have to open the link to a section, much further ahead (it probably is not a course styled thingy). I will end up learning it, given time, but is there some material available that has a similar approach to introducing programming with Rust as the Schaum Series one was for C?

[-] SorteKanin@feddit.dk 2 points 3 days ago

Have you tried the Rust book? I learned via that and it's great.

[-] ulterno@programming.dev 1 points 3 days ago

the Rust book

Do you mean this? https://doc.rust-lang.org/book/

I actually started with that, but somehow redirected to "Rust by Example" and realise they were different, probably because of the same domain name and theme.
Now I see, they did start with explaining ownership, which is one of the things I felt that i was missing, when I started moving forward in "Rust by Example". Thanks for putting me back on track.

this post was submitted on 14 Dec 2025
62 points (94.3% liked)

Programming

23951 readers
383 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS