Hi all,
I have problem working with QGraphicItem. I am drawing a triangle with sides,(a=84,b=84and c=116) I dont know how to specify the bounding Rect() and shape()
QRectF Traingle::boundingRect() const
{
//return QRectF(, , , ,); //What value should be specified here ??
}
QPainterPath Triangle::shape() const
{ QPainterPath path;
//what should be written here?
return path;
}
Actually I want to rotate the triangle, but not sure how to specify the boundingRect() and shape(), can some body please explain?
Rachana
Bookmarks