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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -