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

[REG 6.1.3 -> 6.2.0] AnchorAnimation causes Rectangle width and height to be zero

    XMLWordPrintable

Details

    • macOS, Windows
    • 247efb9a34 (qt/qtdeclarative/dev) cf3534147f (qt/qtdeclarative/6.3) c0e2b028c2 (qt/qtdeclarative/6.2) c0e2b028c2 (qt/tqtc-qtdeclarative/6.2) cf3534147f (qt/tqtc-qtdeclarative/6.3)

    Description

      Rectangle width and height are bound to parent's width and height. Rectangle width and height become zero values if its anchoring is changed with AnchorChanges in a QML state and state is active when the Rectangle is created. There needs to be AnchorAnimation transition defined for anchor change to trigger the issue. Attached AnchorText application log output:

      Qt5.15.8:
      qml: innerRect width changed: 100
      qml: innerRect height changed: 100
      qml: innerRect width 100
      qml: innerRect height 100

      Qt6.2.3:
      qml: innerRect width 0
      qml: innerRect height 0

       

      Attachments

        Issue Links

          Activity

            People

              ulherman Ulf Hermann
              tealamak Tero Alamäki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: