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.

  • ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    13 hours 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?

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 hours 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.