Is this expected behavior? e.g. in the following, even though the rectangle
is not visible, the animation still causes constant rendering (Qt 5.1)

import QtQuick 2.1
import QtQuick.Window 2.1

Window {
  width: 500
  height: 500
  visible: true

  Rectangle {
    id: rect
    anchors.centerIn: parent
    color: 'blue'
    width: 100
    height: 100
    visible: false

    RotationAnimation on rotation {
      from: 0
      to: 360
      duration: 1000
      loops: Animation.Infinite
      easing.type: Easing.Linear
    }
  }
}

Setting 'running: rect.visible' on the animation prevents the constant
rendering.

Is this a bug that I should file, or is it expected behavior?

Thanks

Josh
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to