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

qml: Implicit Component wrapping fails in Inline components

    XMLWordPrintable

Details

    • macOS

    Description

      Implicitly wrapped Components do not work when inside an inline component.

      The example file xxx.qml (see attachment) produces the error

      samis-MacBook-Pro ~/projects/qt-star-build:
      7630 ± qtbase/bin/qml /tmp/xxx.qml
      QQmlApplicationEngine failed to load component
      file:///tmp/xxx.qml:9:33: Cannot assign object of type "Rectangle" to property of type "QQmlComponent*" as the former is neither the same as the latter nor a sub-class of it.
      qml: Did not load any objects, exiting.

       

      The same implicit wrapping works fine when outside an inline component.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes