used to draw the points on the screen for QT