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

Properties are not set on createObject

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      I tried to migrate an application from Qt 5.15.2 to Qt 6.2.2 and noticed a strange behavior in the qml tests. In the test an object is created and the width and height properties are passed to the createObject method. In the Component it binds to the parent.width property, which should be overwritten, but seems to be still bound to the parent.width.

      I attached a small example, which can be run with the qmltestrunner executable.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            voodoo66 Voodoo Master
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes