I just want to know whether Standard C++ allows GUI programming?
There are 2 aspects of this:
I have been using Qt for my UI & haven't seen anybody doing GUI in C++ only.
PS: I am concerned with C++ language only, I know that Java allows GUI programming!
UPDATE: A new question was added here: How frameworks like Qt create GUI, if C++ has no functionality for that?
Graphics programming in C used to drawing various geometrical shapes(rectangle, circle eclipse etc), use of mathematical function in drawing curves, coloring an object with different colors and patterns and simple animation programs like jumping ball and moving cars.
Most people use the gd library for rendering from C but you must implement the "math plotting" part.
C however may do more and perform faster because it's closer to machine code, etc. The computer graphics language determines what you are trying to do. So, when it comes to 3d, for example, Java has Java3D, which is an API, which is much easier for Object-oriented design.
No, this isn't possible. C++ works on many devices, some of which simply don't have that capability.
Qt can do this, usually because the Operating Systems on which it runs do offer that functionality. It's usually exposed as a set of C functions, which in practice means they're callable by the C++ code in Qt. What the OS uses internally, who knows. It may even leave some of the work to the GPU nowadays.
And on some embedded systems, Qt just gets a pointer to the screen memory, and does all the pixel manipulations itself. That's not a solution when you have to share the screen with multiple applications, but for single-function devices it definitely works.
No. There is nothing about GUI in C++ standard.
Frameworks use OS facilities. Standard C++ - no.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With