Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Render parts of a QML scene to offscreen buffer (FBO)
Qt 6.11 is out! See what's new in the release blog

Render parts of a QML scene to offscreen buffer (FBO)

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.0k 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.
  • K Offline
    K Offline
    kersson
    wrote on last edited by
    #1

    Anyone know of a way to render parts of a QML scene (perhaps subtrees of the scene graph) to an offscreen buffer, like an FBO?

    Something similar to this: https://bugreports.qt-project.org/browse/QTBUG-19171

    Specifically, my use case is that I want to render a component within the scene and all of its children to a separate buffer so that I can recomposite it manually.

    Performance is of little concern. That is, I don't mind if the UI is interrupted for a long time while the offscreen rendering occurs.

    After reading the scene graph documentation and API, it seems like I might have to implement a custom scene graph renderer or get the subtree from the component via its QQuickItem::updatePaintNode method and somehow render this subtree manually to an FBO. Just not sure what's the best way to go about this.

    Any advice would be appreciated!

    1 Reply Last reply
    0

    • Login

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