[Qt-interest] custom OpenGL widget update blocks other Qt GUIrendering

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Thu Feb 24 00:57:47 CET 2011


Artem indirectly said: 

> > I simply added to the end of the function that is called by 
> the timer and
> > invokes "updateGL" method the following line: qApp->processEvents();
> >
> > void PreviewWindow::OnTimerEvent()
> > {
> >   ... some other stuff
> >
> >   updateGL();
> >
> >   // Prevents GUI thread from stalling when frame rate is low.
> >   qApp->processEvents();
> > }

This doesn't make sense!  When the timer event exits, isn't it going to
process events anyway?  There must be something else preventing events from
being processed.  

Tony




More information about the Qt-interest-old mailing list