minor changes, define flag for QGLFormat::CoreProfile because the OpenGL didn't draw the reconstructed points