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

Regression: "error : Undefined interface" for Q_INTERFACES during MOC on Windows (cmake)

    XMLWordPrintable

Details

    • 1b599660219d8b54df5d075bf7aa69bfd3bf282b

    Description

      Using Q_INTERFACES in an application built against Qt 5.8.0 on Windows 8.1 (Visual Studio 2015) now results in the following error during MOC:

      error : Undefined interface
      

      An example of code that fails for me:

      #include <QObject>
      #include <QQmlParserStatus>
      class Foo : public QObject, QQmlParserStatus
      {
        Q_OBJECT
        Q_INTERFACES(QQmlParserStatus)
      };
      

      This is a regression in 5.8.0, but does not appear for me in Qt 5.6.2 or Qt 5.7.1.

      This behaviour has not been observed on macOS, iOS, Android, or Ubuntu builds.

      Note that this occurs both in a shadow build and an in-source build.

      Related: QTBUG-36107

      Attachments

        1. Screen1.png
          Screen1.png
          398 kB
        2. QTBUG-59460.zip
          1 kB
        3. qtbug59460_qmake.zip
          1 kB
        4. 5.8.0-moc_foo.cpp_parameters
          0.1 kB
        5. 5.7.1-moc_foo.cpp_parameters
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            krf Kevin Funk
            erb Jason Erb (Suitable Technologies)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes