QCursor
QCursor is a class in the Qt GUI framework that encapsulates the mouse cursor's appearance and position. It provides a portable way to query and specify the cursor used by widgets or by the entire application. A QCursor can represent a standard system cursor via a Qt::CursorShape value, or it can wrap a custom image with a defined hotspot.
Constructors and representations include: QCursor(), QCursor(Qt::CursorShape shape), and QCursor(const QPixmap &pixmap, int hotX, int hotY). The
Accessors and properties allow inspection of how the cursor is defined. The shape() method returns the current
Position and movement are provided as static functions. pos() returns the current global cursor position as
Usage in applications typically involves applying a cursor to widgets with QWidget::setCursor, or applying a global
See also: Qt::CursorShape, QWidget::setCursor, QGuiApplication::setOverrideCursor.