I have this piece of code where I can statically add points to the map
void MainWindow::populatePoints(QList<Point>& locations)
locations.append(Point(-11853242.850239, 3922136.795369, SpatialReference::webMercator()));
But..what I am trying to figure out is how can I make OnClick event, so every time I click
on the map, it will append a point to the map. I am a fairly new programmer and any guidance to solve
this problem would be much appreciated.