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

Allow QML function calls from Android code

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • QPA: Android

    Description

      Why?

      I want to be able to call QML functions from Android, either to provide data to the QML view, or to trigger special behaviors, without having to toggle a property to trigger a QML property change listener.

      What?

       

      How?

      Extend the QtQuickViewContent java class to provide a java -> native function chain to call a function with N arguments.

      Extend the qandroidquickviewembedding native code to support above, and then call the QML function.

      Extend the code generation in ADQT to also generate Java functions that will call the native functions that call QML functions.

      Chain these together, add a test suite.

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            pevirkku Petri Virkkunen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes