Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
QDS 4.5
-
None
-
88f6f52cd (qds/dev), 170a8e8e6 (qds/4.5)
-
QDS Berlin - 2024 Week 23/24
Description
See attached screenshots.
Steps to reproduce:
1. Create a project. Create a folder "MyDesign" inside the projects "...Content" directory. Inside "MyDesign" folder, create another one, "Page1". Add a simple QML file into "Page1" folder.
2. In Components Library click "Add module" button. It will propose "MyDesign" and "Page1" as two different imports. Importing "MyDesign" doesn't involve anything from "Page1". Importing "Page1" is impossible and causes an error message to appear.
User still can import those nested folders by using Code Editor and adding
> import "MyDesign/Page1"
But having UI that helps with valid possible imports will be beneficial. Somewhat fuller qualifiers would be also helpful for situations when users might have complex projects with recurring names, like ["MyDesign", "MyDesign/Page1", "ImportedComponentLibrary", "ImportedComponentLibrary/Page1", ...].
Qt Bridge is capable of generating similar nested structures, following the original design page organization structure.