Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23679

Add qmlImportPaths property to .pyproject file

    XMLWordPrintable

Details

    • All
    • 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

        1. pychart.zip
          2 kB
        2. IMG001.png
          IMG001.png
          256 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            speqtr Alexander Mishin
            speqtr Alexander Mishin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 weeks
                2w
                Remaining:
                Remaining Estimate - 2 weeks
                2w
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes