Moving images in QT
Aim: To move the flattened colon image in Trolltech QT toolkitPossible solutions:
1. QMovie :
http://doc.trolltech.com/3.3/qmovie.html
Problem seems to be that it accepts mng and gif image formats whereas the current flat image is in png .
2. QCanvasSprite :
http://doc.trolltech.com/3.3/qcanvassprite.html
" The QCanvasSprite class provides an animated moving pixmap on a QCanvas"
I have not used QCanvas in displaying the flattened image.
Still further classes have to be explored. If needed the current pixmap on the widget has be drawn by incorporating QCanvas inorder to use the QCanvasSprite class.
Final result should be a real-time movement of the flat image, corresponding to the movement of the mouse in the 3D colon.
0 Comments:
Post a Comment
<< Home