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

Native Android views cannot be removed when added through QWindow::fromWinId

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.6.0 RC
    • Component/s: QPA
    • Environment:
      Galaxy S3
    • Platform/s:
      Android

      Description

      I am able to add a native Android view through the QWindow::fromWinId api, but it will not be removed when deleting the window. Looking into the androidjnimain.cpp it appears to be that the insertNativeView function does not insert the id into the m_surfaces list. If the window id is not in the m_surfaces list, destroySurface will return before calling the jni method to remove the view.

        Attachments

        1. main.cpp
          0.5 kB
          Michael Dippold
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            taipan BogDan Vatra
            Reporter:
            mike12779 Michael Dippold
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes