Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
Qt Creator 14.0.2, Qt Creator 15.0.0-rc1
-
Windows 10 22H2
Description
Code
QtQuick Window { width: 800 height: 600 visible: true Text { text: "Hello" font { family: "Arial" pixelSize: 48 } } }
Steps to reproduce
- Load the code above in a Qt Quick project
- Right-click on the Text and select "Refactoring" > "Move Component into Separate File"
- Check all of the property assignments, to leave them in the original file
- Click "OK"
Unexpected outcomes
Before the refactor:
- The code preview in the dialog shows empty property bindings
After the refactor:
- The original file contains empty property bindings (invalid, broken code)
- The new file contains an empty "font" group (valid but pointless)