-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 17.0.0
-
-
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.