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

qmlRegisterSingletonType() equivalent for JS files

XMLWordPrintable

      Currently we can use qmlRegisterSingletonType() to register a QML file as singleton type in a module, but it doesn't work for a JS file and just crash.

      I also tried QJSEngine::importModule() and QJSEngine::evaluate() as replacement, but both of them don't work when CONFIG+=qtquickcompiler

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

            qtqmlteam Qt Qml Team User
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes