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. Is it possible to use Qt Quick private API create a custom SequentialAnimation in c++?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to use Qt Quick private API create a custom SequentialAnimation in c++?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 534 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.
  • tracymaT Offline
    tracymaT Offline
    tracyma
    wrote on last edited by tracyma
    #1

    All I want is creating sequential animation easily.
    Using QML to dynamic add to or remove {UniformAnimator, RotationAnimation, NumberAnimation}from SequentialAnimation is really hard(maybe there is a nice way, point me out please).
    Is there any way i can make a custom SequentialAnimation in c++ which support add and remove animations?
    I find out that the c++ private API in in path C:\Qt\5.11.0\msvc2017_64\include\QtQuick\5.11.0\QtQuick\private.

    DiracsbracketD 1 Reply Last reply
    0
    • tracymaT tracyma

      All I want is creating sequential animation easily.
      Using QML to dynamic add to or remove {UniformAnimator, RotationAnimation, NumberAnimation}from SequentialAnimation is really hard(maybe there is a nice way, point me out please).
      Is there any way i can make a custom SequentialAnimation in c++ which support add and remove animations?
      I find out that the c++ private API in in path C:\Qt\5.11.0\msvc2017_64\include\QtQuick\5.11.0\QtQuick\private.

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by Diracsbracket
      #2

      @tracyma
      What about QSequentialAnimationGroup and QParallelAnimationGroup?
      http://doc.qt.io/qt-5/animation.html
      http://doc.qt.io/qt-5/qsequentialanimationgroup.html
      http://doc.qt.io/qt-5/qparallelanimationgroup.html

      They have methods addAnimation() and removeAnimation()
      http://doc.qt.io/qt-5/qparallelanimationgroup-members.html

      One of the examples:
      http://doc.qt.io/qt-5/qtwidgets-animation-animatedtiles-main-cpp.html

      1 Reply Last reply
      1

      • Login

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