test for drawing lines using mouse clicks with qglwidget