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

In the .cpp generated by qml, include qcoreapplication.h without module dir variant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7.0 FF
    • 6.5.3
    • QML: Compiler
    • None
    • Windows
    • b01687581 (dev)

    Description

      After I run command 

      "qmlcachegen.exe" --resource="F:\tmp\test.qrc" -o "F:\tmp\test.qml.AEA2B4E2.cpp" "F:\tmp\test\test.qml"

      in test.qml.AEA2B4E2.cpp, qcoreapplication.h is included without "QtCore/". But the other header files are included with their module directory. 

      I attach the qml files which can reproduce this problem.

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            sam.fang Sam Fang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes