firebeard6666
23rd February 2014, 22:52
Hello there,
I m doing a frogger. I did create my "vehicule" item gave it a position, move it with QObject::connect(&timer, SIGNAL(timeout()), &scene, SLOT(advance()));
however, how can I make it go back to his original position and and let it do his animation again. How can I detect the end how my scene should I use QRectF boundingRect() const;
Regards
I m doing a frogger. I did create my "vehicule" item gave it a position, move it with QObject::connect(&timer, SIGNAL(timeout()), &scene, SLOT(advance()));
however, how can I make it go back to his original position and and let it do his animation again. How can I detect the end how my scene should I use QRectF boundingRect() const;
Regards