Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
QDS 4.1
-
None
-
2
-
86d4fbab7 (qds/dev)
-
QDS Oulu - 2023 Week 19/20, QDS Oulu - 2023 Week 21/22, QDS Oulu - 2023 Week 23/24, QDS Oulu - 2023 Week 25/26
Description
When component is created using "Create component" button, it inherits all module imports that are added in main file, even though not all are relevant for the component.
- Create general empty project
- Add rectangle from Components to 2D view
- Add some module imports, e.g. QtQuick3D, QtQuick Studio Components, QtQuick Layouts..
- Choose rectangle1 in Navigator and click "Create Component" -> OK
- Go inside the component
- -> component file includes all the same imports as the main file. Would expect it to include only imports that are really needed for that component.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QDS-9829 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
482807,4 | QmlDesigner: Import only mandatory libraries or directories | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |