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

Behavior on x not avaliable on Android whist NumberAnimation on x not available on Desktop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 5.3.1
    • 5.3.0
    • None
    • Qt for Android 5.3
      Qt for Windows 5.3

    Description

      The following code snippet describes my problem:

      Image
      {
      	id: animateCapsule
      	height: parent.width / 10
      	width: height / 2
      	property int xFrom: parent.width + height * 8
      	property int xTo: -height * 2
      	x: xFrom
      	y: parent.height * 0.45
      	source: "../../images/capsule.png"
      
      	RotationAnimation on rotation
      	{
      		from: 0
      		to: 360
      		loops: Animation.Infinite
      		duration: 2000
      	}
      
      	//@ Desktop works, not available on Android
      	Behavior on x
      	{
      		NumberAnimation
      		{
      			from: animateCapsule.xFrom
      			to: animateCapsule.xTo
      			loops: Animation.Infinite
      			duration: 2000
      		}
      	}
      
      	//@ Android works, not available on Desktop
      //        NumberAnimation on x
      //        {
      //            from: animateCapsule.xFrom
      //            to: animateCapsule.xTo
      //            loops: Animation.Infinite
      //            duration: 2000
      //        }
      }
      

      This is particularly when "RotationAnimation on rotation" is present.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            jiangcaiyang Jiang Yimin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes