Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71866

Access to Android surface native handles...

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.11.1
    • GUI: Window management
    • None
    • Windows 10 build environment

    • Android

    Description

      I'm working with an unreleased VR dev kit that's based on Android.  The SDK for presenting VR images requires access to the native window surface: `ANativeWIndow*`.  There doesn't appear to be any way to access the underlying window surface from Qt C++ code.  I believe it might be possible to work with the EGLSurface instead, but again, there's no way of accessing this, either through the QPlatformNativeInterface or the QOpenGLContext::nativeHandle mechanisms.  Nor can I find any mechanism of fetching the JNI object for the android Surface object for a given GL window.  

      I'm currently looking at potentially modifying QtActivityDelegate.java to try to hack something together for a prototype, but with the core Qt libraries, this dev kit is completely unusable.  

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jherico Bradley Austin Davis
            Santtu Ahonen Santtu Ahonen
            Rami Potinkara Rami Potinkara
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes