Results 1 to 4 of 4

Thread: how to use Qcursor to move the mouse cursor

  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 06:45.

  2. #2

    Default Re: how to use Qcursor to move the mouse cursor

    no replay?

  3. #3
    Join Date
    Sep 2009
    Posts
    31
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to use Qcursor to move the mouse cursor

    Hi, I've simillar problem. On Win XP it is functional (when a call QCursor::setCursor(...), cursor is moved right), but on Ubuntu 9.10 cursor doesn't move, however X seems to think that cursor is in changed positoin (tool tip on (10,10) is displayed) :-(.

  4. #4
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: how to use Qcursor to move the mouse cursor

    You reimplement mouseMoveEvent?

Similar Threads

  1. Mouse move inside control/Widget
    By squidge in forum Newbie
    Replies: 0
    Last Post: 27th September 2009, 17:56
  2. Replies: 1
    Last Post: 16th July 2009, 17: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, 08:29
  4. Move Rectangle on mouse Move
    By vermarajeev in forum Qt Programming
    Replies: 24
    Last Post: 14th May 2007, 06: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.