Unsolved QGraphicsScene rendering to a Pixmap
-
I am capturing the Pixmap at resolution 8K * 6K
- It is taking around 2 - 3 sec for complete scene render in my case. Is there any way to improve the time
- I think Pixmap rendering cannot be done using non Gui Thread. Its giving a crash. Any Suggessions
-
@DonCoder said in QGraphicsScene rendering to a Pixmap:
I am capturing the Pixmap at resolution 8K * 6K
That is a very large pixmap.
QGraphicsScene/QGraphicsView uses CPU rendering, which is slow. Consider a different method that uses GPU rendering.
How are you capturing the pixmap?
I think Pixmap rendering cannot be done using non Gui Thread
That's correct.
QPixmap
is tied to GUI resources which are not thread-safe, so it can only be used in the GUI thread.QImage
can be used from a non-GUI thread, however.