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

[REG:5.9.3->5.11] QML singleton issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.1
    • Fix Version/s: 5.11.1
    • Labels:
      None
    • Environment:
      Ubuntu Linux 16.04 x86_64, built with Clang 7.0 toolchain (with ASAN enabled).

      Description

      Please see the following test case, which runs successfully when built with Qt 5.9.3 but fails when built with Qt 5.11 (latest from git).

       

      It seems that when the root component is loaded via QQmlComponent, and the object hierarchy contains a JS function binding which makes use a QML singleton type which was registered from C++, loading will fail with an error: "Type Testcase/Feedback unavailable: no matching type found, pragma Singleton files cannot be used by QQmlComponent".

        Attachments

        1. testcase.tar.gz
          1 kB
        2. testcase.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            shausman Simon Hausmann
            Reporter:
            chrisadams Christopher Adams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes