Tuesday, 26 May 2015
Today I learned about signals and slots and how you can connect things, here is an example of some simple code that I wrote today that lets you interact with the program instead of just printing text onto your screen and you not being able to interact. Here is the code QObject::connect(button, SIGNAL(clicked()), &app,SLOT()); it may seem complex but the ::connect is connecting SIGNAL(clicked()) with SLOT(quit())); so when ever you click it will quit the program here is an example. Its just a small gif of my clicking quit the program and it actually responding
Thursday, 21 May 2015
Today I started QT which is a program that you use c++ on and its very simple and useful. Now instead of printing text into a console if I use QT I can make actually .exe's with actually UI which is alot better than using a console. Here is an example of what I Made as you can see it has an option to push button which just means click and another think that says Text label and when push button is clicked it displays This to make something like this is very simple and I will continue with the videos tomorrow and learn more.
Wednesday, 20 May 2015
I added a while loop to my game so until who ever is playing presses 4 they can keep choosing items. http://gyazo.com/f9b2d4b1d184a09f43c61c35779ff5f0
I finished the program it is quite simple and just displays text but if you look at the Code its very complex for something so small and that is because I used ifstream objectFile("objects.txt"); which grabs all the information from a txt file and displays it onto Here I am going to continue following his tutorials as I actually enjoy c++
Tuesday, 19 May 2015
Thursday, 14 May 2015
Tuesday, 5 May 2015
Subscribe to:
Posts (Atom)