Results 1 to 2 of 2

Thread: A question on preprocessor

  1. #1
    Join Date
    Mar 2009
    Posts
    68
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default A question on preprocessor

    Hi
    I read somewhere that the keywords signal and slot(when used in class definition)will be translated to pure c++ by preprocessor.Is it a Qt defined(modified)C++ preprocessor?
    thanks
    Try to be useful for your society,not important.
    ------------------------------------------------------
    Every thing that has a beginning,Has an end.

  2. #2
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    30
    Thanked 13 Times in 12 Posts

    Default Re: A question on preprocessor

    The words signal and slot are first processed by the standard C++ preprocessor

    Qt Code:
    1. # define slots
    2. # define signals protected
    To copy to clipboard, switch view to plain text mode 

    (from src/corelib/kernel/qobjectdefs.h)

    and also by moc, which will generate moc_*.cpp-files with the added functionality

Similar Threads

  1. licensing question
    By tommy in forum Installation and Deployment
    Replies: 4
    Last Post: 14th April 2010, 11:54
  2. SQL Question
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 19:36
  3. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 15:34
  4. QT & VC++ 8 preprocessor setting
    By Ngoc in forum Qt Programming
    Replies: 0
    Last Post: 3rd March 2006, 20:40

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
  •  
Qt is a trademark of The Qt Company.