You need to share a gl context with each of your gl widgets.
i.e.
void CreateGLWidgets
(QWidget *parent_widget
) {
}
void CreateGLWidgets(QWidget *parent_widget)
{
QGLContext * my_context new QGLContext;
QGLWidget * widget_1 = new QGLWidget( parent_widget,my_context);
QGLWidget * widget_2 = new QGLWidget( parent_widget,my_context);
QGLWidget * widget_3 = new QGLWidget( parent_widget,my_context);
QGLWidget * widget_4 = new QGLWidget( parent_widget,my_context);
}
To copy to clipboard, switch view to plain text mode
Bookmarks