[PyQt] QPainter warnings when resizing a QWebView element

Brian Zambrano brianz at gmail.com
Fri Aug 5 00:30:56 BST 2011


Bumping this....I'm still getting these warnings on resize events but
otherwise my app seems normal.

BZ

On Fri, Jul 22, 2011 at 12:36 AM, Brian Zambrano <brianz at gmail.com> wrote:

> I'm attempting to use flot, a jquery/javascript plotting library to draw
> plots in a QWebView.  Everything goes well except that I need to resize the
> plot as the window resizes.  I'm doing this in Javascript, of course.  Once
> the resize occurs and my redraw callback fires, I get a warning over and
> over:
>
> QPainter::end: Painter ended with 2 saved states
>
> A short program program to reproduce the issue is here:
> http://pastebin.com/tA4xSMLC
>
> When I comment out the redrawing javascript code, which is using the canvas
> tag, the warnings disappear.  I suspect it's something with the canvas
> element.
>
> Is that warning something to be concerned about?
>
> BZ
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110804/f2945744/attachment.html>


More information about the PyQt mailing list