Congratulations to our 2022 Qt Champions!

Drawing QPainterPath using Opengl

  • Hi All,

    How is it possible to draw a bezeir curve that is constructed by QPainterParth by OpenGL?

    I wrote that code and need to convert it to opengl
    QPainterPath path;
    path.cubicTo(mFromNode->scenePos().x()+tanSize, tangentY, mToNode->scenePos().x()-tanSize, mToNode->scenePos().y(), mToNode->scenePos().x(), mToNode->scenePos().y());

Log in to reply