+ 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.

9th Aug 2017, 9:05 AM
Core i9
Core i9 - avatar
5 Answers
+ 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.
11th Aug 2017, 1:09 PM
deFault
+ 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
9th Aug 2017, 9:12 AM
Paul
9th Aug 2017, 9:14 AM
Xhoan Qazimi
Xhoan Qazimi - avatar
+ 2
you can use opengl,orge3d libraries
9th Aug 2017, 11:59 AM
Ali Ahmed Shaikh
Ali Ahmed Shaikh - avatar
+ 1
here is a cross-platform gui library
9th Aug 2017, 9:14 AM
Xhoan Qazimi
Xhoan Qazimi - avatar