Hi All!

I am changing my mouse cursor to an image that the user can place onto different spots of my scene. I have the place-able locations laid out into a grid of squares, so what I would like to do is restrict the movement of the mouse cursor image to the exact grid square that it would be placed within if clicked at any moment.

I'm almost positive this will involve creating an override of the QCursor class, but I can't really figure out how to get started based upon the documentation.

From my readings, I don't believe that changing the hotspot would hold the image still as I think it just changes what part of the image is received as the "click location".

Perhaps temporarily drop the mouse cursor onto the scene, make the mouse have no cursor, and either restore the image to the mouse when it leaves a grid location, or restore the typical pointer upon a click?

Any advice would be helpful, thanks.