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. Render Qt Quick to FBO

Render Qt Quick to FBO

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    AlHadr
    wrote on last edited by
    #1

    Hi,

    I would like to render Qt Quick/QML 2.0 directly to a FBO and use that as an overlay over a 3D scene in a QGLWidget. As it is not yet possible to mix QQuickView and QWidgets, that is my best option as far as I can see.

    How can I achieve this? I see QQuickWindow has a setRenderTarget(QOpenGLFrameBufferObject*), but how can I load a QML file and render it to a FBO without ever showing the window to screen?

    Are there any code examples/tests that show how to do it?

    I've tried to search for this, but I only found a code snippet using QQuickCanvas, but it seems that QQuickCanvas is not available in Qt5. Is that right?

    Thanks

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zamx
      wrote on last edited by
      #2

      Could you post the code snippet using QQuickCanvas? I'm also trying to render Qml to a FBO.

      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