Details
Description
To repro:
- Create new project.
- Add a file-type import module, i.e. add a "Foobar" folder under project content and add a Foobar.qml there that contains e.g a Rectangle. Sample attached.
- Search for "Foobar" in component library.
- Drag the found "Foobar" component from "All Other Components" into the scene.
--> The item is added to scene, but import for "Foobar" is not created, as it would be if the item was from a regular unimported module.
If you drag the item into form editor instead of navigator, you also get additional copy of the item in the scene (the temporary copy used to visualize the drag in form editor).
Attachments
For Gerrit Dashboard: QDS-5545 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
383302,2 | QmlDesigner: Check file type imports when adding unimported items | 6.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |