def hash_qlinef(line):
    """
    a hash function for QLineF,
        Args:
            line (QLineF) the line
        Returns:
            hash of tuple formed from end point coordinates (x1, x2, y1, y2)
    """
    coords = (line.x1(), line.x2(), line.y1(), line.y2())
    return hash(coords)