[Interest] QtQuick: are animations supposed to cause rendering even if the element it's animating is invisible?

Josh Faust jfaust at suitabletech.com
Wed Jul 24 17:32:48 CEST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130724/51be6f4f/attachment.html>


More information about the Interest mailing list