Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32275

Qt.include cannot handle js files with .import

XMLWordPrintable

      Qt.include can only load plain old js files.

      When using Qt.include to import a file that has any Qt specific .import statements at the top, it will fail to load these.

      Eg.

      import.js
      .import my.test 1.0 as Imported
      
      include.js
      var result = Qt.include("import.js");
      // result will have failed
      

      If this is working as intended, it should be stated in the documentation.
      .pragma in included files works without problems.

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

            aalpert Alan Alpert
            hhinrich Henrik Hinrichs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes