Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
4.7.0
-
None
-
platform:ubuntu 10.04
qt:4.7.0
Description
Hi ,
I got the warnning "QWidget::repaint: Recursive repaint detected" when call repaint() outside of paintEvent,
but from the document of repainter,
"Warning: If you call repaint() in a function which may itself be called from paintEvent(), you may get infinite recursion. The update() function never causes recursion."
but I didn't call repaint() from the paintEvent(),actually I emit a signal from paintEvent, for example: emit done();
and another object will catch the signal and call paintEvent()
So I wonder if it is a bug or not.
please refer to the attachment for detail.
to reproduce the issue:
1. untar the attachment
2. qmake;make clean;make
3. run
4. click the button ,and move the mouse outside the button
5. warning will print out
Best regards,
dtletmedn@gmail.com