PDA

View Full Version : How to set the mouse pointer back to standard mode



dan3460
10th September 2017, 22:18
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?

ado130
11th September 2017, 06:36
Try to call this after setCursor.

QApplication::processEvents();