HI,
my application consists of 3 widget; in the MultipleView I draw myWidget2 and 3;in PerspectiveView myWidget1; application starts with Perspective view; I have insert some printf("...") inside painGL an initializeGL()
and I see that they are run in this order (when I launch program):
initializeGL()
paintGL()
paintGL()
paintGL()
initializeGL()
initializeGL()

Qt Code:
  1. void MainForm::changeView(QAction* action) {
  2. if ( action == perspectiveViewAction ) {
  3. WidgetStack->raiseWidget( PerspectiveView );
  4. }
  5. else if ( action == multipleViewAction ) {
  6. WidgetStack->raiseWidget( MultipleView );
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 
I don't understand why the last 2 paintGL are running before the 2 initializeGL(). Is it right?
And when I call changeView(), starts sometimes 5 paintGL() other times only two....
Thanks