Unsolved Is it possible to use Qt Quick private API create a custom SequentialAnimation in c++?
-
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 pathC:\Qt\5.11.0\msvc2017_64\include\QtQuick\5.11.0\QtQuick\private
. -
@tracyma
What aboutQSequentialAnimationGroup
andQParallelAnimationGroup
?
http://doc.qt.io/qt-5/animation.html
http://doc.qt.io/qt-5/qsequentialanimationgroup.html
http://doc.qt.io/qt-5/qparallelanimationgroup.htmlThey have methods
addAnimation()
andremoveAnimation()
http://doc.qt.io/qt-5/qparallelanimationgroup-members.htmlOne of the examples:
http://doc.qt.io/qt-5/qtwidgets-animation-animatedtiles-main-cpp.html