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

[Reg 5.15 -> 6.2] Properties are not set on createObject

XMLWordPrintable

    • Windows
    • ef6e9f6b7 (dev), 5a334e9c6 (6.5), 9d6ab23f1 (tqtc/lts-6.2), c8cba48b9 (dev), cfdd96f72 (6.5)

      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.

        For Gerrit Dashboard: QTBUG-99363
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            voodoo66 Voodoo Master
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: