PDA

View Full Version : QtPainterPath and cubicTo



Sandiep
12th August 2014, 08:28
10551Hi All,

I want to draw smooth Path from point A->B->C->D.(see attached Image).

my Code is as below


QPainterPath myPath(A);
myPath.cubicTo(A,A,B);
myPath.cubicTo(B,B,C);
myPath.cubicTo(C,C,D);

myPaint.drawPath(myPath);


I am getting output as green lines in attachment. How can I get output as "Black Lines" in attachment? How Can i get reed of green lines shown in black boxes?

Thanks,