-
User Story
-
Resolution: Fixed
-
P2: Important
-
None
-
f05e55ba1 (dev), bfa485e94 (dev), e9244494c (6.10), 522ca0c72 (6.9), 4a7685c20 (tqtc/lts-6.8), 9fd9e881b (dev)
Why?
Cause - i.e why is it needed?
- 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.
Customer - i.e. who needs it?
- Qt Quick for Android users i.e. Android developers bringing Qt Quick 3D rendering engine to their applications
Cruft - i.e. why it is not needed (counter arguments)?
What?
Definition - i.e what is it?
- Direct QML (JavaScript) functions calls can be called/invoked from Java or Kotlin code
Demarcation - i.e. it is not?
- C++ functions with invokables (own root items) as we do not support custom QML items yet
Dependencies - i.e. it needs?
- TODO
How?
Effort - i.e how easy or hard does it feel?
- 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.
Estimate - i.e. how big is the amount of work (in calendar time)?
Essential - i.e the add on value it brings? High
When?
Flex i.e. time-bound (like platform or feature freeze) or not is it?
- Qt 6.11 FF in early December
- Force i.e. labor (do we have enough people working on it) capacity?
Fit i.e. does it fit in (like Qt release)?
- Qt 6.11?
- split to
-
QTBUG-139095 I want to return data to Java/Kotlin from my QML functions
-
- Open
-
For Gerrit Dashboard: QTBUG-137112 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
664224,5 | QQ4A: Add support for generating java code for QML functions | dev | qt/qtbase | Status: MERGED | +2 | 0 |
665533,4 | QQ4A: ADQT: Expect "real" QML type instead of "qreal" from qmldom | dev | qt/qtbase | Status: MERGED | +2 | 0 |
665708,17 | QQ4A: Allow QML functions to be called from Java | dev | qt/qtdeclarative | Status: MERGED | -1 | 0 |
668141,2 | QQ4A: ADQT: Expect "real" QML type instead of "qreal" from qmldom | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
668525,2 | QQ4A: ADQT: Expect "real" QML type instead of "qreal" from qmldom | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
668958,2 | QQ4A: ADQT: Expect "real" QML type instead of "qreal" from qmldom | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |