Switched to Qt4, QGLViewer worked