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

QtQuick Compiler compiled javascript file in extension plugin is not found

    XMLWordPrintable

Details

    Description

      Without QtQuick Compiler, if javascript file like MyUtils.js is defined in qmldir like this:

      MyUtils 1.0 MyUtils.js
      

      It can be used in QML like this:

      import CustomModule 1.0
      ...
      MyUtils.somefunction()
      

      However, if Qt Quick Compiler is used (and qmldir file does not have entry for it), it cannot be found. There is a workaround by adding this to qmldir:

      MyUtils 1.0 qrc:/MyUtils.js
      

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes