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
Post a Comment