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

MOC with QMAKE_EXT_H not adding the include

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes