how do you resize (larger or smaller) a graphicsitem in a view.
Printable View
how do you resize (larger or smaller) a graphicsitem in a view.
Use:
Scales the current item transformation by (sx, sy) around its origin. To scale from an arbitrary point (x, y), you need to combine translation and scaling with setTransform().
Example:
Code:
// Scale an item by 3x2 from its origin item->scale(3, 2); // Scale an item by 3x2 from (x, y) item->setTransform(QTransform().translate(x, y).scale(3, 2).translate(-x, -y));
Thank You , I found it to tonite.:)