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

qml should be able to run js files

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.0 Beta1
    • None

    Description

      qml foo.qml works when foo.qml is just

      import "script.js" as Foo
      QtObject{Component.onCompleted: Qt.quit()}
      

      May as well run .js files as well, and replace the (internal, testing only) qmljs tool as well?

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            aalpert Alan Alpert
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes