Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsScene rendering to a Pixmap
Forum Updated to NodeBB v4.3 + New Features

QGraphicsScene rendering to a Pixmap

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 335 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DonCoderD Offline
    DonCoderD Offline
    DonCoder
    wrote on last edited by
    #1

    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
    JKSHJ 1 Reply Last reply
    0
    • DonCoderD DonCoder

      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
      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

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

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved