Hi,
In the QGLWidget constructor
Qt Code:
  1. QGLWidget::QGLWidget ( QGLContext * context, QWidget * parent = 0, const QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0 )
To copy to clipboard, switch view to plain text mode 

How is sharing a QGLContext different from sharing a QGLWidget? It seems to me that passing in a context is the same as sharing a widget. The shared widget and the newly constructed QGLWidget will be sharing the same context any way. So, why is there the option to pass in a context?

Thanks