Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved How to stop QPropertyAnimation if it is not finished yet.

    General and Desktop
    qpropertyanimat
    3
    3
    1274
    Loading More Posts
    • 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.
    • T
      Tigran84 last edited by

      How to stop QPropertyAnimation or QParalelAnimation. I have animations groups sequences, how to stop first animation when started second one.

      J.Hilk 1 Reply Last reply Reply Quote 0
      • J.Hilk
        J.Hilk Moderators @Tigran84 last edited by

        @Tigran84 Take a look here:
        pause(), resume() and stop() is what you're looking for.

        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

        Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply Reply Quote 3
        • Vinod Kuntoji
          Vinod Kuntoji last edited by

          Use,

          animation->stop()

          C++, Qt, Qt Quick Developer,
          PthinkS, Bangalore

          1 Reply Last reply Reply Quote 5
          • First post
            Last post