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

Android web views don't work in QML rendered offscreen via QQuickRenderControl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.11.1
    • WebView
    • None
    • pre-release Snapdragon 835 based VR headset running android 7.1.1.

      Testing against a Google Pixel phone running Android 9 also shows the same issue
    • Android

    Description

      When attempting to rendering QML to an OpenGL texture on android, use of WebView elements do not end up rendered as part of the texture.

      Based on inspection of the Java and JNI code in the WebView source, it looks as if such views are implemented using some kind of view compositing at the android level, after the entire QML scene has been rendered using OpenGL, rather than attempting to render the Android WebView to an offscreen surface of its own and rendering the resulting texture as part of the conventional QML scenegraph render.

       

      This is a huge limitation for us.  Our application is primarily VR based and on desktop platforms the ability to use the QtWebEngine module to render HTML to an offscreen surface allows us to make HTML UIs available inside a 3D rendered VR environment.  However, we're starting to do more work with Android based VR headsets and so this issue is a giant missing feature.

      Rendering an arbitrary Android view to an OpenGL texture is apparently a solved problem:  http://www.felixjones.co.uk/neo%20website/Android_View/

       

       

      Attachments

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

        Activity

          People

            stromme Christian
            jherico Bradley Austin Davis
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes