Hello,

I am using QT Eclipse for my project, In my screen 75% of the screen in for opengl window and remaining is for other stuff..
Now, for Opengl window creation, I have dragged the widget(Which is actually an QWidget) and I promoted it to my custom widget which is called "GLWidget" which is extended from QGLWidget.
I need to switch between different screens, I mean different opengl drawing stuff depending on some notifications. I wanted to do it as same as I did it for GLWidget.

My Question here is, Would it be possible to promote to multiple custom widgets for the same GL window(Ex: GLWidget, GLWidget2 ..)
which I can decide at runtime to which widget to be used?

EX:
IF(1)
promote to GLWidget(using the GLWidget instance for drawing)
else
Promote to GLWIdget2(using the GLWidget2 instance for drawing)

A state machine kind of thing.

Thanks in Advance!