I have just recently (few weeks ago) gotten into messing around with writing C++ "console applications".
For some of the little projects that I am working on, having an actual GUI would be a nice thing to have.
(To do things like display graphs, enter values, have things like "save txt file as"-dialogues, nothing too fancy ...)
What is the "best way" for a beginner like me to "get into" creating GUI applications (in C++)?
Does anybody have any good (preferably written) tutorial that they can recommend?
What "tools" do I need?
The "IDE" that I am using is CodeLite on a Win10 computer.
(No, I do NOT want to use visual studio, because you have to register to use that)
Thanks for that quick answer ...
I will have a look at that list.
I think the most difficult thing to "get into" will be that there is not just "one file" with a nice little "main" function that you put your code into.
Or is there ...?
From what I have heard / read, this GUI stuff works more with "events", so like "IF you click this button, DO this ...".
So not the typical "sequential" approach that a classic console application has ...
I have been reading a bit into working with this GUI stuff and the only thing I got out of it was a headache ...
I think I will keep to using the console as a UI until I have "mastered" the basics of objects and things like that. (Because unitl now, I have used "objects" just like "better" arrays).
(Or I will just use a microcontroller that controls a graphical LCD display and my "PC-programm" will interface with that via RS232 to display things like graphs, because I am pretty sure I can do that.
That way I can combine my knowledge of that kind of things with the "processing power" and "huge memory" of an actual PC)
Also, you're quite right: most GUI programming is quite event driven. And if you wanted, you certainly could stuff all of your application's code into main, but… I wouldn't recommend it once your main file starts getting hundreds of lines long. :P
That seems interesting...
No, I don't mind an "old looking GUI", I am not one of those people who wants nice curved edges and shaded colours and nonsense like that.
About "putting everything in 'main' ":
Well, for the project I am currently working on, if I were to put everything into main it would be a lot more then a few hundret lines ....
(I know that lots of that is "commented out" documentation stuff and things like COUTs, but anyway ...)