Hi, I'm trying to add other shapes (Polygon, Line, etc) but when it is created the resizer:
class PolyResizer : public SizeGripItem::Resizer
{
public:
virtual void operator()(QGraphicsItem* item, const QRectF& rect)
{
QGraphicsPolygonItem* polyItem =
dynamic_cast<QGraphicsPolygonItem*>(item);
if (polyItem)
{
// << there is not rect on this class... polyItem->setRect(rect);
}
}
};
Or maybe, do I need to add something else?
Hi, I'm trying to add other shapes (Polygon, Line, etc) but when it is created the resizer:
Or maybe, do I need to add something else?