Skip to content

Resizer other shapes? #5

Description

@sgbzona

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions