LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   QT calling functions ... How? (https://www.linuxquestions.org/questions/programming-9/qt-calling-functions-how-527364/)

Four 02-10-2007 01:27 PM

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

Tinkster 02-10-2007 02:21 PM

Look at their source?



Cheers,
Tink

matthewg42 02-10-2007 05:13 PM

QT code is pre-processed with moc before it is compiled.

Mara 02-11-2007 10:32 AM

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.