powered by
set_cursor(view, cursor = "ArrowCursor")
qplotView
NULL
0: ArrowCursor; 1: UpArrowCursor; 2: CrossCursor; 3: WaitCursor; 4: IBeamCursor; 5: SizeVerCursor; 6: SizeHorCursor; 7: SizeBDiagCursor; 8: SizeFDiagCursor; 9: SizeAllCursor; 10: BlankCursor; 11: SplitVCursor; 12: SplitHCursor; 13: PointingHandCursor; 14: ForbiddenCursor; 17: OpenHandCursor; 18: ClosedHandCursor; 15: WhatsThisCursor; 16: BusyCursor; 20: DragMoveCursor; 19: DragCopyCursor; 21: DragLinkCursor; 24: BitmapCursor
We can pass either the integer code or the character string to the cursor argument.
cursor
library(cranvas) library(qtpaint) scene <- qscene() qlayer(scene) v <- qplotView(scene = scene) print(v) set_cursor(v, "WaitCursor") set_cursor(v, 2L) # CrossCursor
Run the code above in your browser using DataLab