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. Rendering a simple red background using QOpenGLFramebufferObject in QML and using Opengl
Forum Updated to NodeBB v4.3 + New Features

Rendering a simple red background using QOpenGLFramebufferObject in QML and using Opengl

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 291 Views 2 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.
  • W Offline
    W Offline
    Winwinftw
    wrote on last edited by
    #1

    Hi,

    I am trying to understand how to render some stuff onto QML using Qt6 with Opengl based on this blog post that was in 2015

    https://www.qt.io/blog/2015/05/11/integrating-custom-opengl-rendering-with-qt-quick-via-qquickframebufferobject

    I have tried but i couldn't get it to render anything. Wondering if there is anyone who is able to guide or point me to the right direction.

    This is the link to my sample code (Qt creator 12.02, Windows 11)
    https://drive.google.com/drive/folders/1tTS3a49nzF4j2pnyhG5UE8zfPoNbndec?usp=sharing

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Winwinftw
      wrote on last edited by
      #2

      Hi, i have tested the exact same code for both Qt 5.12 and Qt 6. For 5.12 it's working but for 6 it is not working

      SGaistS 1 Reply Last reply
      0
      • W Winwinftw

        Hi, i have tested the exact same code for both Qt 5.12 and Qt 6. For 5.12 it's working but for 6 it is not working

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Based on the class documentation, the class is legacy and will only work if OpenGL is used in the backend.

        Try running your application with the QSG_RHI_BACKEND environment variable set to opengl.

        For example: QSG_RHI_BACKEND=opengl appopenGL.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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