Hi All
My application consists of QGraphicsView/Scene with some shapes like rectange items.
I have option to save entire scene to an image file using following code
scene->addItem(rectItem);
scene->addItem(rectItem);
//.....
scene.render(&p);
p.end();
img.save("scene.png");
QGraphicsScene scene;
scene->addItem(rectItem);
scene->addItem(rectItem);
//.....
QImage img(1024,768,QImage::Format_ARGB32_Premultiplied);
QPainter p(&img);
scene.render(&p);
p.end();
img.save("scene.png");
To copy to clipboard, switch view to plain text mode
Image is gets saved propertly. but when I tried to zoom in GraphicsView by setting matrix. and then save the image, tthe image which I get is of initial scale level.
e..g Initial scale is 1 after zoom in say GraphicsView's scale becomes 2
but image (scene.png) is created with initial scale of 1.
Can any body tell what I missing ??
Thanks in advance.
Nilesh
Bookmarks