Checking if 2 shapes are overlapping no matter what shape in QML
Unsolved
QML and Qt Quick
-
Hello everyone,
I am developing an application that requires detection of whether 2 shapes overlap in QML. I have found guides on how to do this for rectangles (easy) and circles (a bit harder), but I need it to work for any shape, including rotated rectangles, ellipses and custom path-defined shapes. Is this possible by anyone's knowledge or will I have to do develop something myself? I was thinking of testing with co-ordinates inside a given shape with childAt() on the parent of the other object, but this could be tricky when dealing with shapes with non-vertical or horizontal sides. Thanks for any help!