[Interest] Help with segfault when drawing Bezier curve
Rollastre Prostrit
rollastre at gmail.com
Sun Sep 16 19:51:28 CEST 2012
On 09/16/2012 06:25 PM, Gopalakrishna Bhat wrote:
> Hi,
>
> On Sun, Sep 16, 2012 at 9:44 PM, Shriramana Sharma <samjnaa at gmail.com
> <mailto:samjnaa at gmail.com>> wrote:
>
> Hello.
>
> I'm working on some stuff involving bezier curves and wanted to write
> my own bezier display applet to keep in handy, so that I can adjust
> the nodes and handles and it would show me real-time what the
> resultant curve looks like.
>
> However I am running into some curious segfault even with a minimal
> bezier display. I've attached the code that produces it. (FWIW this
> code is under the GPL since I'm developing more of this in PyQt under
> the GPL.) I hope someone can help me resolve the problem.
>
> QPainter in the paintEvent for BeizerWidget should not be static.
> Remove that.
Yes, probably your QPainter is deleted after first paintEvent is
processed and hence you can see the curve for a fraction of the second
before your app crashes on a second paintEvent.
>
> I am using Qt 4.8.1 on Kubuntu Precise.
>
> --
> Shriramana Sharma
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
> With regards,
> Gopalakrishna
>
>
> --
> My blog http://gkbhat.blogspot.com
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120916/a320ae33/attachment.html>
More information about the Interest
mailing list