QWidget.cursorPos

Called by widgets (usually keyboard-input-taking) to position the cursor

It can only be called if the widget is active (i.e selected), in non-active widgets, it's null;

class QWidget
protected
void delegate(uinteger x, uinteger y) cursorPos;

Meta