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
[-] Lee@retrolemmy.com 3 points 4 days ago

I've used WxWidgets and Win32 API in C. I suspect OP will quickly learn why electron is popular even though it's so bloated. That said, sounds like OP wants a light weight and cross platform option, so WxWidgets gets my vote. Granted it's been over 10 years since I've used it.

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

Programming

23951 readers
485 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