The exporting functionality described above is not yet available for 3D graphics. However, it is possible to generate an image from a GLViewWidget by using QGLWidget.grabFrameBuffer or QGLWidget.renderPixmap:
glview.grabFrameBuffer().save('fileName.png')
See the Qt documentation for more information.