Detect if two items overlap
-
Hi,
AFAIK, there's no such ready property in QML.
-
Hmmm, i would implement a simple collision detection like bound box. "LINK....":https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection
If the elements on the same y axis it's enough to calculate the distance between the x axis and move the second element up to a distance bigger then the width of the first element. -
In case of collision detection, "this":http://developer.nokia.com/community/wiki/Collision_Detection_In_QtQuick would also be a good start.