Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.12.0-beta1
-
Qt Creator on all major desktop platforms (Linux, macOS and Windows).
-
-
229dfaab95325ce64e27fe4503c8b99e5ec90bff (qt-creator/qt-creator/master)
Description
DISCLAIMER: I contributed to Qt in the past and I'm willing to contribute this feature too. This issue is created in order to ask Qt Creator developers to confirm that proposed feature will be accepted (merged into master) and to ask if there is any additional info that I should be aware of before starting to implement this feature.
Preamble:
Additional import paths in Qt Creator are added using various project settings:
- for qmake and CMake projects - QML_IMPORT_PATH variable;
- for qmlproject projects - importPaths property;
- for qbs projects - qmlImportPaths property;
But there is no such option for Python/PySide2/PyQt5 projects *.pyproject.
Objective:
Users should be able to add custom QML import paths for Python/PySide2/PyQt5 projects in Qt Creator in order to get syntax highlighting and code completion for custom QML modules.
Solution:
In *.pyproject file add support for qmlImportPaths and qmlPluginPaths properties. Each of those properties should represent an array of custom QML import paths and plugin paths respectively.
Value:
Improves UX for Python/PySide2/PyQt5 projects development in Qt Creator.
DoD (Definition of Done):
Users are able to get syntax highlighting and code completion for custom QML modules by adding qmlImportPaths and qmlPluginPaths options in *.pyproject file.
Attachments
For Gerrit Dashboard: QTCREATORBUG-23679 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
314681,4 | Add qmlImportPaths property to .pyproject file | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |