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

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.3.0 Beta1
    • Fix Version/s: None
    • Component/s: Build tools: moc
    • Labels:
      None
    • Environment:
      Mac : Mountain LION
      QtCreator 3.0.82
      Qt 5.3.0
    • Platform/s:
      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

              Assignee:
              docteam Qt Documentation Team
              Reporter:
              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