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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important 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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes