Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Question on Animation
Forum Updated to NodeBB v4.3 + New Features

Question on Animation

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 871 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jiangcaiyang
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JoeyAndres
      wrote on last edited by
      #2

      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;

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        Hi,

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

        157

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved