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

Defining inline Component does lead to resolving type

    XMLWordPrintable

Details

    • All

    Description

      Define inline Component with type that contains QML modules/types which are not available at runtime will cause application to fail to start.

      Actually no need even to involve Loader but example shows how one would like to implement code and how this issue forces it to be solved.

       

          Main.qml
          
          ...
          
          Component {
              id: fooComponent
              Foo {
                  color: root.rectColor
              }
          }
          
          ...
          
          Foo.qml
          
          import QtQuick
          import FooModule
          
          Rectangle {
              id: root
              anchors.fill: parent
          }

      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
            papetaja Pasi Petäjäjärvi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes