I don't have any code to show because this was over a year ago. I used a timer I think. It did not work very professionally. How would you do it so that it is a smooth operator?
I am already able to draw the grid efficiently (ie. in view only). I just need the snapping algorithm.
Here is my
mouseReleaseEvent
forQGraphicsItem
's derivative class. Grid has a step equal to 5: