LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2007, 01:27 PM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
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
 
Old 02-10-2007, 02:21 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Look at their source?



Cheers,
Tink
 
Old 02-10-2007, 05:13 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
QT code is pre-processed with moc before it is compiled.
 
Old 02-11-2007, 10:32 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If I remember correctly it has a kind of dictionary. Remember that all signals and slots are marked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling one of metacity's functions kiruxa Linux - General 0 11-25-2006 06:06 PM
functions calling eth_header venkatesh111 Linux - Networking 1 04-22-2006 03:39 AM
calling functions outside the body(in c or c++).. bastin_gh Programming 1 07-06-2005 02:09 AM
Calling functions in C++ oulevon Programming 3 01-28-2005 03:14 PM
calling command line functions in java darthczyz Programming 2 12-09-2003 07:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration