How do I get a Qpixmap or QImage from a QGraphicsView without show()+grabWidget()
I have tried following
Code:
QImager img;
view.render(&painter);
painter,end();
img.save("./image.png");
Problem with this approach is that view does not update before rendering onto painter. Calling view.update() did not help either.
Any help is appreciated.
thanks
Re: How do I get a Qpixmap or QImage from a QGraphicsView without show()+grabWidget(
Since you don't seem to need the view, have you tried rendering the scene itself instead?
Cheers,
_