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 Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 626 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.
  • lilyofvalleyL Offline
    lilyofvalleyL Offline
    lilyofvalley
    wrote on 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 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

      • Login

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