Pincharea : snap to parent edge
-
Hello,
How would one go about implementing a rectangle, with a pincharea, that snaps to the parent rectangle edges?
I an very new to QT(2 weeks) and I have implementation that uses a lot of linear algebra to calculate positions after the child rectangle is scaled and rotated, find snap to coordinates, inverse of scale and rotation on the coordinates to get new properties then modify the child with new properties.
Is there anything built in that could handle this without all the work of calculating the coordinates of a scaled and rotated rectangle?