Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Set value after animation
Forum Updated to NodeBB v4.3 + New Features

Set value after animation

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 330 Views
  • 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.
  • Y Offline
    Y Offline
    YB-2B
    wrote on last edited by
    #1

    Hello dear community,

    I have the following problem:

    I have a property integer x,
    which also has a "behavior on x" function which defines that if the value changes,
    a "property animation" displays the change.

    Now after this animation I need this value to be back at 0 but it seems I can't change it anywhere with this animation,
    but I can change the integer value if the property animation is not declared.

    Is there any possibility to change the value of x automatically back to zero after the animation duration ?

    Thank you in advance

    Kind regards

    Christian EhrlicherC 1 Reply Last reply
    0
    • Y YB-2B

      Hello dear community,

      I have the following problem:

      I have a property integer x,
      which also has a "behavior on x" function which defines that if the value changes,
      a "property animation" displays the change.

      Now after this animation I need this value to be back at 0 but it seems I can't change it anywhere with this animation,
      but I can change the integer value if the property animation is not declared.

      Is there any possibility to change the value of x automatically back to zero after the animation duration ?

      Thank you in advance

      Kind regards

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @YB-2B said in Set value after animation:

      Is there any possibility to change the value of x automatically back to zero after the animation duration ?

      Not directly but you can connect to QPropertyAnimation.:finished().

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Y 1 Reply Last reply
      3
      • Christian EhrlicherC Christian Ehrlicher

        @YB-2B said in Set value after animation:

        Is there any possibility to change the value of x automatically back to zero after the animation duration ?

        Not directly but you can connect to QPropertyAnimation.:finished().

        Y Offline
        Y Offline
        YB-2B
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thank you

        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