ajithmak
18th June 2012, 20:10
Hi,
I am beginner in QT and i am facing a problem while i try to load a QGLWidget. I am using QWidget inside the Q3WidgetStack.
I have already loaded one screen and it is working fine by calling the below described methods and raising the widget.
Now when i am trying to load the second screen by having another Qwidget into the Q3WidgetStack and by calling in the same fashion i am not able to see the expected result.
I am using the
below mentioned QT commands
user.currentGLWindow->addWidget(X,-1);
user.currentGLWindow->raiseWidget(X);
usetr.currentGLWindow->setVisible(true);
i know that when i call the respective widget 3 functions gets called which is overridden as per application needs.
i do not see them called at all. I have added some print functions to console to see if it is called.
I do not see either InitialzeGL, resizeGL or paintGL being called.
Kindly help me to come out of this situation
I am beginner in QT and i am facing a problem while i try to load a QGLWidget. I am using QWidget inside the Q3WidgetStack.
I have already loaded one screen and it is working fine by calling the below described methods and raising the widget.
Now when i am trying to load the second screen by having another Qwidget into the Q3WidgetStack and by calling in the same fashion i am not able to see the expected result.
I am using the
below mentioned QT commands
user.currentGLWindow->addWidget(X,-1);
user.currentGLWindow->raiseWidget(X);
usetr.currentGLWindow->setVisible(true);
i know that when i call the respective widget 3 functions gets called which is overridden as per application needs.
i do not see them called at all. I have added some print functions to console to see if it is called.
I do not see either InitialzeGL, resizeGL or paintGL being called.
Kindly help me to come out of this situation