QT calling functions ... How?
I looked at the connect function and all it takes is 2 objects and 2 strings. I checked the preprocessed output and each function is identified with 1 or 2 at the start of the string of the function.
How does QT call these functions only knowing the name of the functions as strings and a pointer to the objects? I found this interesting because I have a lab todo for school and knowing this and using a similar mechanism I think it will simplify my lab :). Thank you |
Look at their source?
Cheers, Tink |
QT code is pre-processed with moc before it is compiled.
|
If I remember correctly it has a kind of dictionary. Remember that all signals and slots are marked.
|
All times are GMT -5. The time now is 09:46 AM. |