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

When having inlined components using custom component properties, bindings when using Loaders will fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • 5.0.0
    • 4.7.1
    • None
    • QMLViewer, Qt 4.7.1, osx 10.6.5

    Description

      Declare a CustomComponent.qml.
      Have a main.qml.
      Have a property of type CustomComponent in your main.qml, containing a default value.
      Have a Component inside main.qml, using another CustomComponent property, referencing the value from main.qml.
      Load this Component using a Loader.
      Run the main.qml.

      See the error message displayed:
      LoaderReferenceBug.qml:16: Unable to assign QObject* to CustomComponent_QMLTYPE_0*

      See attached example for more information

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            hhinrich Henrik Hinrichs
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes