Results 1 to 4 of 4

Thread: how to use Qcursor to move the mouse cursor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Talking how to use Qcursor to move the mouse cursor

    hi,

    i am new to qt.
    here is my problem:
    i want to move the mouse cursor in a QWebView widget. so i use Qcursor::setPos() to change the postion of the mouse cursor. and setPos() is called in the event() function ( i reimplement it ). but when it runs, the mouse cursor dosent move at all. but when setCursor(Qt::CrossCursor) is called, the shape of the cursor does change, and position returned from pos() alse changed. but the cursor doesnt move at all
    i dont know if it is nessecery to call other flush function to reflush the screen.

    thks
    Last edited by jack_shen; 23rd December 2009 at 05:45.

Similar Threads

  1. Mouse move inside control/Widget
    By squidge in forum Newbie
    Replies: 0
    Last Post: 27th September 2009, 16:56
  2. Replies: 1
    Last Post: 16th July 2009, 16:58
  3. QListView: How to move the cursor to a specific row
    By muellerp in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2008, 07:29
  4. Move Rectangle on mouse Move
    By vermarajeev in forum Qt Programming
    Replies: 24
    Last Post: 14th May 2007, 05:34

Tags for this Thread

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.