Approach for graphic scene with animation
-
Hello everybody, I'm thinking about creating a program which will have some animation scene, specifically it will illustrate a continious stream of some imagined packets that consist of 4 buffers (queues) that are multiplexed into one stream. I need to control animation speed, number of packets in each buffer and buffer frequency (priority) of occurrence in the main stream. I've tried the QPainter on a simple QWidget earlier, but I never used QGraphicsScene. I've read the approach QGraphicsScene/QPainter is obsolete for Qt 5.2/5.3 and QtQuick Scene Graph is used instead. So, to which side of Qt should I look?
-
Hi.
I don't think that QGraphicsScene is obsolete.
But if you write new app, better of course use QtQuick.
good start points are:
"Qt Examples And Tutorials":https://qt-project.org/doc/qt-5/qtexamplesandtutorials.html
"qmlbook.org":http://qmlbook.org/ -
Hi,
you might also find the "QTimeLine":http://qt-project.org/doc/qt-4.8/qtimeline.html class useful.
Best
Soraltan
-
Thank you, I will try this