GUI C++

shahbazsaleem (14)
hi everybody,
i wanna start c++ GUI based. Please send me any e-book or any other site to learn c++ GUI based.
Darkmaster (341)
have a look at Qt
shahbazsaleem (14)
what is Qt?? Darkmaster
Peter87 (3691)
Qt is a library/framework for making GUIs. The C++ standard library doesn't contain any GUI features so you will have to use a third party library for that.
Darkmaster (341)
what is Qt?? Darkmaster

search Qt in google. it's the first entry. the other entries on the 1st site give you some more info about it.

was difficult to find, right?
shahbazsaleem (14)
I want to use visual studio 2010, Is visual studio can't be used for GUI programming in C++
cnoeval (435)
Of course it can. Did you try researching it???
Darkmaster (341)
why do you think it is called Visual Studio
shahbazsaleem (14)
i've not find any proper site where i can start gui,
Darkmaster: I want to learn gui in c++ in visual studio
i did not understant QT.
Moschops (5961)
What you don't understand is how GUI works.

C++ has no understanding of a monitor. C++ does not know what a pixel is. C++ does not understand mouse or keyboard. All these things are something your operating system handles for you.

All you can do is ask your operating system to do things for you. You ask the operating system to put pictures on the screen. You ask the operating system to tell you what the mouse is doing. You ask the operating system all these things.

Each operating system provides a set of functions you can use to ask it to do things. These are known as the Operating System's API. For example, the Win32 API.

You have a choice. Either you learn to use the API, which is powerful but low-level, or you find another piece of software which is simpler for you to use, and that piece of software asks the operating system to do things for you. These are known as widget toolkits. QT is one of these.

You can do GUI programming in C++ with any C++ compiler. You don't need visual studio. You don't need anything more than a text editor and a C++ compiler.

If you decide you want to learn the Win32 API, start here: http://www.winprog.org/tutorial/

If you decide you want to learn a widget toolkit, pick one and start at their website.
Last edited on
Darkmaster (341)
i can only recommend Qt.

to get started you can use the designer and simply drag and drop everything you need, e.g. buttons, labels, text windows,...

also there are already a lot of predefined slots (something like functions) so you just call them with some parameters and your first GUI is done in a few minutes.
Zereo (182)
I would also recommend you get the hang of the basics of C++ before jumping into graphical API's. From what you have posted so far it seems like you have just started to learn C++, so it would be best probably to run through the tutorial on this site and get some experience with C++ before jumping into the advanced stuff.



Registered users can post here. Sign in or register to post.