I think the problem is that std::map
requires the type that has operator <
implemented, however QPoint
does not. To resolve this, you could define your map, for example, in the following way:
std::map<int, QPoint> pointMap;
Otherwice you need to define your custom "Less than" operator for QPoint, like:
bool operator <(QPoint point1, QPoint point2)
{
// Do you logic here, to compare two points.
return true;
}