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

Add error message when type registration fails outside of QML module loading

    XMLWordPrintable

    Details

    • Commits:
      036aa822455b4d831076a1ba364fa1ef304dee84

      Description

      Add error message when type registration namespace is not set.

      If one does
      qmlRegisterUncreatableType<EnumTest>("enumtest",1,0,"enumtest", "empty");
      and tries to access console.log("enumtest.high:" + enumtest.high); we only print out ReferenceError.

      It would be more clear to give programmer indication why the enumtest was not registered, e.g. give indication that it should be uppercase.

        Attachments

        For Gerrit Dashboard: QTBUG-68323
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            erikv Erik Verbruggen
            Reporter:
            ravila Risto Avila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes