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

Adding QML_ELEMENT to the class in subfolder breaks compilation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.6, 6.7
    • QML: Tooling
    • None

    Description

      Qt tools generates invalid file: qt_qml_element_01_qmltyperegistrations.cpp for the item/myitem.h (cpp)

      The include section should be

      #include "../../<go-to-project-root>/item/myitem.h"

      But actual is

      #include <myitem.h> // missing subfolder

      Expected: include path should be relative to the generated cpp. It should be an easy fix, because tool knows both generated and header (with QML_ELEMENT) file path.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              saz Dmitry Sazonov
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes