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. OpenGL Rendering to Two QML Windows
Forum Updated to NodeBB v4.3 + New Features

OpenGL Rendering to Two QML Windows

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 215 Views
  • 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.
  • J Offline
    J Offline
    Jhalter2
    wrote on last edited by
    #1

    In my project I've been successfully using my C++ OpenGL code to render underneath a QML UI on the same window. I'm now trying to render the same scene (models, textures) but using a different camera in a second, child window.

    No matter what I try I cannot get anything to render on the child window. I've successfully retrieved the pointer to the child window, and I've connected a separate paint call for the child window. I'm also setting the correct viewport size, and calling beginExternalCommands() and endExternalCommands() before and after I finish my OpenGL calls to the child window. I've also tried recalling initializeOpenGLFunctions() for each window before their render pass believing that the OpenGL context may not be shared between parent and child. The render is still correct on my parent window, but the child shows nothing.

    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