This class provides a mouse cursor with arbitrary shape and color. (details) (complete member list)
#include <qcursor.h>
The QCursor class represents the window system's mouse curor. There are a number of predefined cursor shapes:
It is also possible to define custom shapes.
Members are provided to change shape, get the cursor position and so on.
Constructs a cursor with the default arrow shape.
Constructor a cursor with the specified shape.
Constructs a custom bitmap cursor.
Arguments:
Constructs a copy of the cursor c.
Dereferences the cursor and destroys the cursor data if it was the last reference.
Returns a deep copy of the cursor.
To do:
Warning: System dependent! Do not use this unless you have to.
This function returns the window system's handle to the current cursor. Rather than use it, you should tell us what the portable functions lack.
The return type for each window system is specified in qcursor.h.
Assigns c to this cursor and returns a reference to the cursor.
Returns the position of the cursor on the screen in the global coordinate system.
You can use QWidget::mapFromGlobal() to translate it to widget coordinates.
The return value is the coordinate of the hot spot.
See also: setPos(), QWidget::mapFromGlobal() and QWidget::mapToGlobal().
Warps the cursor to the global screen position (x,y).
You can use QWidget::mapToGlobal() to translate widget coordinates to global screen coordinates.
See also: pos().
This function sets the cursor shape. If the argument isn't a valid shape number, an arrow cursor will be substituted.
This function returns the cursor shape (one of the global cursors or one of the custom cursors.
.
Writes the cursor to the stream.
Reads the cursor from the stream.
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: