PDA

View Full Version : Animated Cursor



kemp
22nd January 2007, 08:20
Hi!

In my application when a time consuming operation is in progress i want to display
an animated cursor but all the options in Qt::CursorShape are only static.
Is there a way to make my cursor spin or something so that the user knows that
something is happening?

Thanks.

aamer4yu
22nd January 2007, 08:53
u can use a timer... and on each time event, change the cursor...
refer QCursor::QCursor ( const QPixmap & pixmap, int hotX = -1, int hotY = -1 )...

and QWidget::setCursor(...)

it will give the feel of animation...