At the following web page: http://web.mit.edu/qt-dynamic/www/tutorials-tutorial-t2.html
In:
QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
Why is & used with quit and app? Cannot we use quit and app without &?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
QObject::connectneeds pointers to two objects. So you have to give it that.(Since the link you posted is broken, can’t be sure of what
quitandappare.)