Hi friends,

Im facing a problem of adding a QGLWidget as a viewport of the GraphicsView ...
when i tried to show my QGLWidget it looks perfect ..
but when i tried to add as a QGrraphicsView viewport() im facing a problem...

this is how i added..

Qt Code:
  1. QApplication app(argc, argv);
  2.  
  3. scene->setSceneRect(QRectF(0, 0, 1024, 800));
  4.  
  5.  
  6. GLWidget *window = new GLWidget();
  7. window->makeCurrent();
  8. view.setViewport(window);
  9. view.setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
  10. view.setScene(scene);
  11. view.show();
To copy to clipboard, switch view to plain text mode 

the window looks white blank screen.. but when i show GLWidget alone it looks ok.. i drawn a polygon on a balck background QGLWidget ..
please help me ... thanks in advance !