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. How to share the same OpenGL context between multiple QQuickWindow instances ?
Forum Update on Monday, May 27th 2025

How to share the same OpenGL context between multiple QQuickWindow instances ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 603 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.
  • L Offline
    L Offline
    lilyofvalley
    wrote on 14 Oct 2016, 18:35 last edited by
    #1

    It seems to be default setting in Qt 5.4. The multiple QQuickWindow instances are sharing the same OpenGL context. But when upgrade to Qt 5.7, they are using different opengl context.
    In Qt Document:
    http://doc.qt.io/qt-5/qquickwindow.html#openglContextCreated
    It states "Some implementations will share the same OpenGL context between multiple QQuickWindow instances. " But it does not mention how to guarantee this setting.
    Did I misunderstanding something?
    Thanks!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 14 Oct 2016, 21:44 last edited by
      #2

      Hi! I can't say for sure but my guess is that the context will be shared on all platforms that allow that, so all desktop platforms. Maybe it's just not technically possible on e.g. Android.

      1 Reply Last reply
      0

      1/2

      14 Oct 2016, 18:35

      • Login

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