+ 3

GUI using C++

How can you design GUI for a program using C++ ?

2nd Feb 2017, 1:38 PM
Jidesh
4 ответов
+ 2
Yes, you can. But the standard C++ language and the Std library does not have direct support for graphics/GUI because this is often platform specific and left to 3rd parties. Some C++ vendors do bundle their own libraries along with the std library, and these include graphics support. For example Microsoft C++ comes with MFC, Embarcadero C++ Builder comes with VCL, etc. There are also 3rd party libraries available that support graphics/GUI like wxWidgets, Qt, Ultimate++ and others.
2nd Feb 2017, 3:49 PM
Ettienne Gilbert
Ettienne Gilbert - avatar
+ 3
Hi @Jidesh, an OS does not need a GUI for apps at the kernel level - it is all command line / console stuff! Applications bundled with the OS that have GUIs are developed exactly like any other app with a GUI. For Windows a lot of the legacy C++ apps used MFC for the GUI parts. On the Unix/Linux side, for example, the KDE GUI framework is developed using Qt.
2nd Feb 2017, 6:08 PM
Ettienne Gilbert
Ettienne Gilbert - avatar
+ 1
Of course! Check out Qt!
2nd Feb 2017, 1:57 PM
~datell
0
How are then OS developed using C++?
2nd Feb 2017, 4:26 PM
Jidesh