Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1398

Put `qmlImportPaths` into some module

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • None

      Currently to make QtCreator aware of custom QML import paths, we have to define magic property `qmlImportPaths`.

       

      Product { 
          name: "myProduct"
          property stringList qmlImportPaths: [sourceDirectory + "/path/to/qml/"]
      }
      

       

      https://doc.qt.io/qbs/porting-to-qbs.html#qml-import-path

      I think it would be much better, if we had dedicated Qbs module for this, so that instead of the above, one could write

      Product { 
         name: "myProduct" 
         qtcreator.qmlImportPaths: [sourceDirectory + "/path/to/qml/"] 
         Depends { name: "qtcreator" }
      
      }
      

      This would be much more cleaner and consistent with the Qbs design. It could also pay back if more properties affecting QtCreator are going to be introduced in the future.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            qdoc Michal Policht
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes