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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -