[Interest] QPainterPath issue

william.crocker at analog.com william.crocker at analog.com
Fri Jun 20 20:38:23 CEST 2014


On 06/20/2014 11:57 AM, VStevenP wrote:
> I am trying to use QPainterPath to render a graph. I draw an x and a y axis in
> blue, then use moveTo and QuadTo to draw a curve which crosses over the x axis.
> What I see is that the quadTo operation erases some of my blue x-axis pixels,
> specifically the pixels between the curve and where a straight line between the
> endpoints would connect.
>
> Am I using QPainterPath wrongly? Is there any way I can do the quadTo() such
> that it won't overwrite pixels which are not under the final curve it actually
> draws. It's erasing too many pixels.
>

Sounds like the system thinks your path is closed
and with an active fill brush.
But I defer to an expert.

> - VStevenP
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list