+ 3

Programming GUI with C++?

Hi guys, I was wondering what are the best options for creating GUI applications with C++. Could you give me some suggestions? Thanks!

22nd Jul 2017, 1:36 PM
stufava
stufava - avatar
5 Respuestas
+ 3
Look up Qt
22nd Jul 2017, 1:47 PM
aklex
aklex - avatar
+ 1
Visual Studio had the most friendly resource editor (where you put controls, like buttons, textboxes, comboboxes, on a dialog and it creates a .res file for you), but I haven't used it since 2010. Now I use MinGW Developer Studio, but its Resource editor is buggy, I have to copy the defines it creates in a separate .h file, in which I also include<windows.h> and then this .h file I include it in the .res file and in my .cpp file with the WinMain(). And if I decide to modify the GUI of my app, I have to maintain the sync of the defines between the .res and the the .h file I mentioned. Damn, it sounds more complicated than it actually is, I do this a lot and it's no big deal. Dev-Cpp has a template code that creates a window when you select Windows project (if I remember well), but that's different than a dialog, you can't edit it in a resource editor to add controls on it, you have to do it programatically, I think dialogs are simpler.
22nd Jul 2017, 2:01 PM
lion
lion - avatar
+ 1
I think aklex's answer is better, I never used Qt because I think it makes your apps dependent on its libraries, but I may be wrong. But if you want to try MinGW Studio, the most lightweight option I know, I could send you some simple programs so you can see the basics and grow from there.
22nd Jul 2017, 2:49 PM
lion
lion - avatar
+ 1
thanks both for the answers. I'll try to have a look at qt, but I'll definitely ask you for some code if I choose to give a chance to MinGW Studio as well. thanks again!
22nd Jul 2017, 2:57 PM
stufava
stufava - avatar
+ 1
QT ... its perfect ... actually the latest version
23rd Jul 2017, 5:37 AM
Charles Kwaka
Charles Kwaka - avatar