On 09/16/2012 06:25 PM, Gopalakrishna Bhat wrote:
Hi,

On Sun, Sep 16, 2012 at 9:44 PM, Shriramana Sharma <samj...@gmail.com <mailto:samj...@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@qt-project.org <mailto:Interest@qt-project.org>
    http://lists.qt-project.org/mailman/listinfo/interest


With regards,
Gopalakrishna


--
My blog http://gkbhat.blogspot.com


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

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

Reply via email to