Results 1 to 3 of 3

Thread: Meta-Object Compiler Design Details

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Meta-Object Compiler Design Details

    This is a meta-meta question ;-)

    I really like how Qt extends C++ to allow for signals/slots as well as other features as described in the three links below. It does so through generating code via the "moc" program. I would like to extend C++ to generate code in a similar fashion for my own purposes, and would love to find out more about the design of the meta-object compiler that Qt uses. However, I can't seem to find any documents on this except on how to use it, as opposed to how it is implemented or the high level design of it. Below are the links I found. Could someone point me to more information about the design of "moc" so that I could implement my own code generator in the same spirit.

    Meta-Object Compiler
    Meta-Object System
    Why Doesn't Qt Use Templates for Signals and Slots

    Thanks,
    Lex

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Meta-Object Compiler Design Details


  3. #3
    Join Date
    Mar 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Meta-Object Compiler Design Details

    Quote Originally Posted by ChrisW67 View Post
    I have not, until now. I spent about 30 minutes looking at it so far and will continue doing so. However, it would be more productive if I could find a "design philosophy" type document or presentation on code generation done by Qt. Why Doesn't Qt Use Templates for Signals and Slots comes closest. I looked through Developer Days presentations and couldn't find anything there besides general mentions of Q_OBJECT and the signal/slot mechanism.

    If you see any further information on "moc" design, let me know. Thanks!

Similar Threads

  1. Phonon and the meta interval
    By huilui in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2012, 06:08
  2. Replies: 10
    Last Post: 2nd December 2010, 07:10
  3. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36
  4. Replies: 4
    Last Post: 20th August 2010, 13:07
  5. Qt Linguist Meta-data and lupdate
    By Tyris in forum Qt Tools
    Replies: 0
    Last Post: 7th May 2010, 07:58

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.