[Qt-interest] MainWindow::paintEvent() constantly called

Alexandre Courbot gnurou at gmail.com
Fri Jun 19 03:47:52 CEST 2009


Hi,

> I have a very simple first project that has a main window containing
> only one Lable which I use to display a picture from my web-cam. This
> works fine, except, the paintEvent() is constantly called. It seems that
> updating the Lable with an image from the web-cam causes a trigger to
> re-call the paintEvent()
> function. If I ignore the re-call each time after I update the Lable,
> then everything works fine. Is this a known feature/problem?
> Any help appreciated.

You do not state
- How often paintEvent is called,
- What are the side effects on your application (blocked window?)

nor do you give some code that would allow us to understand where the
problem could come from. Please give more details about the issue!

Alex.



More information about the Qt-interest-old mailing list