Don't work AnimationGroup (QSequentialAnimationGroup, QParallelAnimationGroup)
I am learning from a book. I do single animation, but in group don't work.
QSequentialAnimationGroup *group = new QSequentialAnimationGroup;
trow me one error:
QSequentialAnimationGroup : no appropriate default constructor available
and QParallelAnimationGroup *group = new QParallelAnimationGroup; has 3 errors
- QParallelAnimationGroup: undeclared identifier
- group: undeclared identifier
3.syntax error: identifier "QParallelAnimationGroup"
looks like you are just missing a
yes it works. thank you
but it is bad,that Sequential animation need other #include <QSequentialAnimationGroup> library
Hi can I ask Why is that bad?
In my opinion, it is less convenient to write 3 libraries, when you want animation
you can use
#include <QtGui>and forget about the rest but you are just dumping a lot of useless stuff on your compiler.
yes, but at first i taught in QPropertyAnimation library would has all this features ( Why should not be? ), nor in my book read to need another library :D
Well most likely it has later been split to own files / classes later.
It's best not to have tons of bundles as then big projects will suffer a lot if everything includes
heaps of extra classes.
yes you are right, thanks