Results 1 to 2 of 2

Thread: Animated Cursor

  1. #1
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Animated Cursor

    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.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Animated Cursor

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

  3. The following user says thank you to aamer4yu for this useful post:

    kemp (22nd January 2007)

Similar Threads

  1. How to synchronize text cursor and cursor in QTextEdit
    By kennyxing in forum Qt Programming
    Replies: 6
    Last Post: 18th February 2007, 10:14
  2. Make the cursor visible in textEdit (Qt3.3.5)
    By vermarajeev in forum Qt Programming
    Replies: 9
    Last Post: 24th January 2007, 23:50
  3. QTextEdit: I can not see the cursor by deafult
    By sukanyarn in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2006, 08:55
  4. Replies: 7
    Last Post: 8th September 2006, 17:19
  5. animated gif's
    By :db:sStrong in forum Newbie
    Replies: 2
    Last Post: 31st May 2006, 16:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.