Surendranath wrote:How do I get the cursor position programmatically?
You should never have to do this. Please use the event handler pickCoordinate instead to receive an event whenever the mouse cursor position changes or the user enters a coordinate.
Perhaps I can be of more help if you let me know why you would like to query the mouse cursor position directly.
Surendranath wrote:How do I move the cursor to a specific position on the screen in the program.
The mouse cursor that is displayed by the operating system cannot be moved other than by moving the mouse.
The position of the cross hairs displayed by QCAD (yellow horizontal / vertical lines) can be set by:
Where di is an RDocumentInterface object and pos is an RVector.