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

QtActivityDelegate no longer exposes its layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.3.0 Beta1
    • QPA
    • None
    • Qt 5.3 snapshot dated 2014-05-06_23-24-27
    • Android

    Description

      In Qt 5.2 it is possible to add custom views directly from Java (for example Google AdMob or other 3rd party views) by accessing getQtLayout() in the QtActivityDelegate. Then you can just call m_qtLayout.addView(m_adView for example. In Qt 5.3 this function is gone, instead there is a insertNativeView function which requires an id which I cannot reliably guarantee to not already be taken.

      The ids are managed in androidjnimain.(cpp|h) and I'm not willing to use a C++ class to pass my Java stuff around to eventually do Java stuff again.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              broulik Kai Uwe Broulik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes