c++ - Qt: prevent the mouse from moving outside a QGraphicsScene -


i prevent mouse moving outside qgraphicsscene if mouse pressed.

i tried use qcursor::setpos ( 0, 0) example using screen coordinates. think need map coordinates scene. know qwidget::maptoglobal() exists.

does know how restrict movable area of mouse qgraphicsscene please?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -