I'm working on a Qt project. When a user enters points on a mouse click. Is it possible to know which points are closest together? I want to perform calculations on each group of points. Is there built in functions that I can use ?