In my application, the user can change the properties of the OpenGL format (i.e. double buffering, multisampling, the depth of various buffers, etc.).
Currently, there is only one QGLWidget in my application, and if the user changes something, I destroy and recreate the widget.
Now I would like to have more than one widget. Therefore, if the format changes, I need to destroy / recreate all the widgets. Since the widget can take various configurations, it is difficult to destroy / recreate it. So, is there a way to change the QGLWidget format at runtime?
Alternatively, is there a way to replace the widget with another? (i.e. destroy the widget and place a new one where it will stand)
c ++ user-interface dynamic qt4 opengl
Pierrebdr
source share