Hello,
I have a simple widget and I draw simple shapes on it. I am selecting, say, a rectange, and moving it (dragging it actually) to another position in the drawing window. The problem is that, while dragging, I can move the mouse outside the drawing window, which is undesirable.
Is there a way to contain mouse movement within the drawing window? I guess some custom code needs to be placed in the mouseMoveEvent handler, but using what type of logic roughly?
TIA,
rdr
Bookmarks