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

qmlRegisterSingletonType() equivalent for JS files

    XMLWordPrintable

Details

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes