[Qt-interest] signals and slots....revisited...

Konstantin Tokarev annulen at yandex.ru
Mon Mar 14 16:05:29 CET 2011



14.03.2011, 11:22, "sarvesh saran" <aquarian.thunder at gmail.com>:
> I would like to know...at least at a higher abstraction. The SLOT and SIGNAL macros would generate a string representation of the signal and the slot containing the name, arguments etc (kind like a mangled C++ method name?). These names are then looked up (where?) and the appropriate slots are called ( i guess through the meta object?..qt_metacall).
>
> I want this info for a variety of reasons...i was under the belief that signals and slots involve function pointers until some one very recently contradicted this...so i would like some clarification as to how the signals/slots are mapped,looked up and called?

You can get all answers from moc generated files and implementation of QObject.
There's no magic in this stuff :)

-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list