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.

  • AnarchoSnowPlow@midwest.social
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    21 hours ago

    I generally don’t do GUIs for C. But I’m also an embedded C person.

    When I have I’ll generate DLLs for the C portion then just pull them into a python based interface or something with easier to deal with gui implementations.

    Programming languages are tools. Would you use a wrench to drive a nail? You could. But it would be painful, you’re gonna miss and whack your hand at least once.

    If it’s a learning exercise, go for the C implementation, why not? I’ve written an XML parser in LabVIEW. (I never stopped to ask whether I should…) Is that the right tool for the job? Fuck no.

    If this is an exercise in software engineering be an engineer and use the 99% already built and verified system to do the job it’s meant to.

    Or you can write an entire theme park simulator in assembly because you like pain or something.

    • _cnt0@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      21 hours ago

      Or you can write an entire theme park simulator in assembly because you like pain or something.

      Say what you will, but that was an economically viable route to take. I’m still in love with TTD and RCT2.