Results 1 to 2 of 2

Thread: How to set the mouse pointer back to standard mode

  1. #1
    Join Date
    Jul 2017
    Posts
    16
    Qt products
    Qt5
    Platforms
    Windows

    Default How to set the mouse pointer back to standard mode

    I have an application that uses QaxWidget to display a PDF file, on the PDF area if you move the mouse the pointer changes to a hand so you can move the document around. My problem is that, I'm guessing, the widget is not aware that the PDF viewer changed the pointer and is not returned back to "normal". I tried with this->setCursor(Qt::ArrowCursor) but it has no effect. As soon as you start to move the cursor even when you are outside the pdf widget its changes into a hand. Any ideas hoe to solve this?

  2. #2
    Join Date
    Jan 2017
    Posts
    58
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to set the mouse pointer back to standard mode

    Try to call this after setCursor.
    Qt Code:
    1. QApplication::processEvents();
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 2
    Last Post: 7th June 2013, 06:35
  2. Replies: 3
    Last Post: 22nd February 2013, 19:56
  3. detecting back and forward buttons on >= 5 button mouse
    By chezifresh in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2011, 20:45
  4. free mouse pointer
    By raflegan in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 14:11
  5. Fall back to untranslated mode
    By fullmetalcoder in forum Qt Programming
    Replies: 10
    Last Post: 2nd July 2007, 08:33

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.