hi friends ,
i need a help to clarify my doubt in QLineF() .. i dont know where i am commiting the mistake ..

in mainwindow.cpp (QGraphicsView())
i create a line item class ....
Qt Code:
  1. line1 = new LineItem(QLineF(2,4, 132 ,160), Qt::blue);
  2. line1->setPos(374,215);
To copy to clipboard, switch view to plain text mode 
and
in lineitem.cpp
Qt Code:
  1. LineItem::LineItem(const QLineF &line, const Qt::GlobalColor color)
  2. color(color)
  3.  
  4. void LineItem ::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *)
  5. {
  6. painter->setPen(QColor(color));
  7. QReal value = 90;
  8. line().setAngle(value);
  9. painter->drawLine(line());
  10. }
To copy to clipboard, switch view to plain text mode 

here the line is drawn perfectly but i cant fix the angle ... its not turning in counter clockwise ... not like transform.rotate .. why ?

please help ...