Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38370

Defines (like Q_OS_IOS) are not taken account when moccing a header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.3.0 Beta1
    • Build tools: moc
    • None
    • Mac : Mountain LION
      QtCreator 3.0.82
      Qt 5.3.0
    • iOS/tvOS/watchOS

    Description

      In the .h of a .mm, when I use something like

      #if defined(Q_OS_IOS)
      class Test : public QObject
      {
      Q_OBJECT
      ...
      };
      #endif
      

      The generated file is empty : the Q_OS_IOS is not defined.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              docteam Qt Documentation Team
              julienw Julien W
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes