In a Qt application, if we have the following for example:
.
.
.
QApplication a(argc, argv);
.
.
.
QObject::connect(&button, SIGNAL(clicked()), &a, SLOT(quit()));
.
.
.
Here, I know button is the object that will send the signal. Thus, a is the object that will respond to the signal. In this case, a is a QApplication object. But, what does it really represent? For example, we knew that button is a button object, then what does a represent? Is it simply a window?
Thanks.
The
QApplicationdoes not represent any visual element. Instead it represents the whole “program” – which is of course something of more abstract a nature.