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

QML Rectangle's radius property scale Animation bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.14.2
    • None

    Description

      I found that if I give rectangle a radius property , it will make a terrible bug in "scale" NumberAnimation .

      these are my codes.

      import QtQuick 2.14
      
      import QtQuick.Window 2.14 
      
      Window {
      
      visible: true
      
      width: 640
      
      height: 480
      
      title: qsTr("myQMLDemo") 
      
      Rectangle {
      
      id: rect
      
      width: 100;
      
      height: 150
      
      color: "red"
      
      {color:#ff0000} radius: 50  {color}
      
      MouseArea{ anchors.fill: parent onClicked:
      
      { myAni.start() }
      
      } 
      
      SequentialAnimation
      
      { id:myAni running: false NumberAnimation \\{ target: rect; property: "scale"; to: 2; duration: 2000 }
      
      } } }
      

       

      if the "radius" property is active ,the animation was broken .

      if the "radius" property was disabled , the animation is fine .

      check the images for details 

       

      what is the reason that leads to this bug ? 

      Attachments

        1. 1.png
          40 kB
          Peter Hoang
        2. 2.png
          41 kB
          Peter Hoang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peter.huang Peter Hoang
            peter.huang Peter Hoang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes