PDA

View Full Version : How to draw strokepath



rajji_saini
25th March 2011, 22:40
Hello,

I am trying to implement this following gdi call in Qt.

CDC* m_pDC;
m_pDC->BeginPath();
m_pDC->PolyDraw(points, types, count);
m_pDC->EndPath();
m_pDC->StrokePath();



Need Help in making equivalent calls in Qt.

Regards,
Raj

high_flyer
1st April 2011, 14:31
Have a look at QPainter.

rajji_saini
5th April 2011, 01:11
Thanks, QPainter works for me ...
I create a QPainterPath and then strokepath using QPainter
e.g. painter->strokePath(path,pen)

Only thing I have to take care of is: all the MOVETO, LINETO, CLOSEFIGURE stuff ...