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

MOC with QMAKE_EXT_H not adding the include

XMLWordPrintable

    • Linux/X11

      When adding a new header extension with
      QMAKE_EXT_H += .myh

      The moc compiler generates a moc_.cpp file *without the necessary #include to the original .myh file.
      Later on, the compilation of the moc_*.cpp file fails with "not declared" errors, of course.

      I'm attaching a tgz with the simplest case to reproduce the error.
      It works as it is, changing the .pro file commenting the usual .h an uncommenting the lines to enable .myh leads to the reported error.

      Thanks,
      Albert

        1. qtbug.tgz
          0.8 kB
          Albert Gil
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            agilmor Albert Gil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes