Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

Question on Animation



  • If a created an image like that:
    @ Image
    {
    width: parent.width / 4
    height: width
    x: parent.width * 5 / 8
    y: parent.height / 5
    source: "../../images/le.png"

        Behavior on y
        {
            LoopAnimation
            {
                from: parent.height / 5
                to: 0
            }
        }
    }@
    

    Does the animation stop when image.visible is false, or further more, image.parent.visible is false? Thanks.



  • I read on the documntation once that in order to keep animation or whatever operation you have in your elements, use opacity = 0.0 instead of visible = false;


  • Moderators

    Hi,

    AFAIK, the animation wont stop even if the visibility is turned to false.


Log in to reply