PDA

View Full Version : How to get cursor shape?



rednes
30th June 2016, 23:30
How can I get cursor shape when application minimized?

on hotkey I call:

qDebug() << "mouse (" << QCursor::pos().x() << "x" << QCursor::pos().y() << ")" << this->cursor().shape();

QCursor::pos() - is right, but cursor().shape() - always return "ArrowCursor" (even within the application).

How can I get real shape or cursor pixmap (Windows, MacOS)?