Visit my website at http://thenewboston.com for all of my videos!
My Google+ - https://plus.google.com/108291790892450338168/posts
My Twitter - http://twitter.com/#!/bucky_roberts
My Other YouTube Channel - http://www.youtube.com/thenewbostontv
Donate - https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5K9RJVCAKWZKS
Views:
15,699
Rating:
Embed:
Comments
Your Pronunciation of the word 'Button' is upsetting me XD. Although I am British... Love the tutorial though!
YOU HAVE GREAT ABILITIES TO TEACH
Thanks for this tutorial, its really good :)
Ohe hallo dayre =D
Signals and sluts.
i know that feel bro
This is pretty confusing for me, just used to your old fashioned hard C++.
Probably you forgot to include some file you need that has the connect macro. Qt extensively uses macros and generates code so I suggest you use QtCreator unless you have advanced knowledge of building programs with Netbeans.
&app refers to the application which is why quit() can be used. You need to change that to label.
I don`t understand why my program won`t work,
QApplication app(argc, argv);
QLabel *label = new QLabel("I am a label!");
QPushButton *button = new QPushButton("I am a Button");
QObject::connect(button, SIGNAL(clicked()), &app, SLOT(label->show();));
button->show();
return app.exec();
}
I did Show instead of quit();
Did you include everything and show the button?
button->show();
Put a semicolon before 'button'
Help! I wrote the program exactly as he did, and all that popped up was a blank window.
Thanks a lot for the simple explanaition on signals and slots, when I tried learning qt in the past it was the first wall I hit... now it makes sense.
Hello, I got a problem. It says mingvm10 missed, so i downloaded the DLL file and putted it in the directory. But then a new DLL miising. What to do? :(
how do i make this into an exe
Yeah I was derping :S
fixed it. Idk how I fixed it since it has been a month since then but I have fixed it. And it wasnt a missing ;
just saying.
I don't think your using qt
Most likely a syntax error.
Been following your videos from Java to C++. You sir ARE a genius! Thanks for your contributions to the community!
I cant connect the button :(, netbeans keeps saying " error: expected `;' before 'button' ". Help?
the function quit being passed into the function SLOT which is being passed into the function called connect
FUNCEPTION!!
I just made a video on the basics of coding html. Plz check it out. It will help my channel gte on it feet. Thnx guys
actually I think the bool event makes the button a switch button for example you click the button to open a window and you click the button again to close it and click again to open and so on so it will switch between events if that is what it is than its extremely useful I almost used something like that in all of my projects