Wednesday, March 30, 2005

Moving images in QT

Aim: To move the flattened colon image in Trolltech QT toolkit

Possible solutions:

1. QMovie :

Problem seems to be that it accepts mng and gif image formats whereas the current flat image is in png .

2. QCanvasSprite :

" 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.


Post a Comment

<< Home