+ 1
How do i add GUI to C++
I have compiled and ran my programs but its so brief without the compiler. I wish to add some buttons so the user can read and press Yes, No and Cancel. Can you please help me with this and list the things I will be needing to begin.
5 ответов
+ 3
You'll need to use some GUI library to do that. And choosing the right one depends on what you want to do and which operating system you want to target.
If you want to be platform independent, take a look at some cross-platform libs. One popular and lightweight choice (wxwidgets) was mentioned here. I would also recommend to check out Qt (https://www.qt.io/). It's more like a full-blown framework that can do a lot of things. Just search something like "Qt C++" on YouTube to get an impression on what it's about.
+ 2
the first thing you need is a graphic libraty, there are plenty open-source and free libs out there. im currently not on my pc so i cant tell you the name of any specific one, but maybe later i will post it. after you add a library to your project you have to learn how to use it, so just to look into documentation on into example. c++ is great for learning those fings, but you will sometimes rip your hairs out of your head ya know. if you have any specific questions, let me know
+ 2
you can use opengl,orge3d libraries
+ 1
here is a cross-platform gui library