Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QGraphicsScene rendering to a Pixmap



  • I am capturing the Pixmap at resolution 8K * 6K

    1. It is taking around 2 - 3 sec for complete scene render in my case. Is there any way to improve the time
    2. I think Pixmap rendering cannot be done using non Gui Thread. Its giving a crash. Any Suggessions

  • Moderators

    @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.


Log in to reply