PDA

View Full Version : How to Draw spline on QGraphicsScene



seguprasad
3rd February 2011, 04:44
I am able to draw Lines on QGraphicsScene using the following code:


QGraphicsScene scene;
QGraphicsLineItem *pGraphicItem = new QGraphicsLineItem(X1, Y1, X2, Y2);
scene->addItem(pGraphicItem);


How to draw a spline on QGraphicsScene?

-Segu

tbscope
3rd February 2011, 05:28
http://doc.qt.nokia.com/4.7/qgraphicspathitem.html