Hi Samuel, thanks, that solved my Problem.
Regards, Dietrich Gossen Continental Engineering Services Von: Samuel Rødal <[email protected]> An: [email protected] Datum: 10.02.2012 09:11 Betreff: Re: [Interest] Calculate FPS with QGLWidget - paintGL() is not called Gesendet von: interest-bounces+dietrich.gossen=continental-corporation....@qt-project.org On 02/10/2012 08:56 AM, ext [email protected] wrote: > > 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. > > That’ how my own Widget GLWidget looks like: My guess is that paintGL() doesn't get called since you're using the QGLWidget as a viewport in graphics view. The viewport itself doesn't get a paint event, it's QGraphicsView::paintEvent() that creates a QPainter on its viewport(). If you want to measure FPS you could override QGraphicsView::drawForeground() or similar, as its called once per frame. -- Samuel _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
