Details
-
Task
-
Resolution: Done
-
P1: Critical
-
QDS 2.0 Beta
-
None
-
1
-
c11f5ebd4205ff66559ed625adb620420bb3bea7 (qt-creator/qt-creator/4.15)
-
QDS 3D - 11/12
Description
In QDS 2.0 it is possible to add so-called directory imports:
In this case "CP 2Horizotnal Layout" is an import that "imports" a sub folder.
This import will make all types in the subfolder available.
In QDS 2.1 this kind of import cannot be added using the UI.
Directory imports are crucial for large projects and the standard Qt Bridge workflow.
As far as I can see direcotry imports were not handled explictly in QDS 2.0:
m_addImportComboBox->addItem(possibleImport.toString(true), QVariant::fromValue(possibleImport));
The distinction is built in into QmlDesigner::Import:
bool isFileImport() const { return m_url.isEmpty() && !m_file.isEmpty(); } bool isLibraryImport() const { return !m_url.isEmpty() && m_file.isEmpty(); }
Most likely the issue is in the frontend and the new code relies on an existing url, while directory imports only have file.
Attachments
Issue Links
- mentioned in
-
Page Loading...