rect.topRight()

Return the point that is the top right corner of the rectangle.