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

qml should be able to run js files

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.2.0 Beta1
    • Fix Version/s: None
    • Labels:
      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

            Assignee:
            aalpert Alan Alpert
            Reporter:
            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