PDA

View Full Version : How to diable and NOT hide cursor?



roseicollis
4th March 2015, 15:32
Hi,

I'm making a GUI app which interaction with the user is only with keyboard so I need the cursor to be diabled. I've found the next:

QApplication::setOverrideCursor(Qt::BlankCursor);

BUT this only put it like if it were invisble so if you have a mouse connected and move it, the widgets of the widget show the focus and if you click, the cursor go there if its a line edit for example and I don't wnat this. I want that even if there is a mouse, no one can make a thing with it.

Thank you!

anda_skoa
5th March 2015, 08:08
Global event filter, filtering out all mouse events?

Cheers,
_