Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33298

Refactoring QML component doesn’t add file to CMakeLists.txt

XMLWordPrintable

    • macOS, Windows
    • 893a86a51 (17.0)

      Moving QML component into separate file does not add the component file to CMakeLists.txt

      Steps to reproduce:

      • Create new project: "New Project" -> "Qt Quick Application"
      • Add an Item to the Main.qml inside the Window:
      Item {
         width: 200
         height: 100
      }

      (Declaring properties is not mandatory.)

      • Open context menu and select "Refactoring" -> "Move Component into Separate File"
      • Approve moving component by selecting "OK" from the dialog

       

      Expected:
      MyComponent.qml is added to the CMakeLists.txt with QML_FILES

       

      Actual:
      MyComponent is not added to the CMakeLists.txt and it is underlined with yellow "MyComponent was not found..."

       

      Attached video of the issue with steps.

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

            qtqmlteam Qt Qml Team User
            tiheikka Titta Heikkala
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes