Am 10.02.2012 um 08:56 schrieb dietrich.gos...@continental-corporation.com:
> Hi,
>
> I am trying to calculate the fps of my application. I know in general how to
> do it, but my implemented QGLWidget doesn’t work properly. The paintGL()
> Method doesn’t get called.
> ...
> And that’s my main.cpp
>
> int main(int argc, char *argv[])
> {
> QApplication a(argc, argv);
>
> QGraphicsScene scene
>
>
> QGraphicsView view(&scene);
>
> GLWidget *gl = new GLWidget();
>
> view.setViewport(gl);
> view.setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
>
> view.show();
>
> return a.exec();
> }
Is this your actual code? Because you don't add any items to your scene, so
there is nothing to paint!
So I guess Qt just clears the background, but doesn't bother calling the
QGLWidget's paint method.
Cheers, Oliver
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest