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

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

    XMLWordPrintable

Details

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

    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

        1. tst_item.qml
          0.5 kB
          Voodoo Master
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: