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

Using a component with Component {} as the root element as another file Component again crashes in QDeclarartiveComponent

    XMLWordPrintable

Details

    Description

      Using a component with Component {} as the root element as another file Component again crashes in QDeclarartiveComponent.

      If you have for example a component like flickr/mobile/ListDelegate.qml

      Component {
          Item {
              id: wrapper; width: wrapper.ListView.view.width; height: 86
              Item {
                [...]
              }
          }
      }
      

      Then using this component as a root component like this:

      test.qml:

      import QtQuick 1.0
      import "mobile" as Mobile
      Mobile.ListDelegate { }
      

      will crash.

      Since we sometimes turn elements into components in the tooling this leads to problems.

      Attachments

        Issue Links

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

          Activity

            People

              aakenned Aaron Kennedy
              thohartm Thomas Hartmann
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes