Using QGLCanvas and changing displayfunctions