S
socket
Hello
Im having a bit of difficulties to understand how QT event hooking
works, im trying to figure out an example from trolltech's QT tutorial
(http://doc.trolltech.com/3.1/tutorial1-02.html)
Im having trouble with this line:
QObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
What is SIGNAL() ? a macro?
It gets clicked() as a parameter, what for?
my reason says clicked() returns a value of some const that represents
an event but when looking on clicked() defenition i see that it
returns void:
void QButton::clicked () -
http://doc.trolltech.com/3.1/qbutton.html#clicked
So what's going on? how does it work? please help me understand
Im having a bit of difficulties to understand how QT event hooking
works, im trying to figure out an example from trolltech's QT tutorial
(http://doc.trolltech.com/3.1/tutorial1-02.html)
Im having trouble with this line:
QObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
What is SIGNAL() ? a macro?
It gets clicked() as a parameter, what for?
my reason says clicked() returns a value of some const that represents
an event but when looking on clicked() defenition i see that it
returns void:
void QButton::clicked () -
http://doc.trolltech.com/3.1/qbutton.html#clicked
So what's going on? how does it work? please help me understand