Details
-
User Story
-
Resolution: Unresolved
-
P1: Critical
-
None
-
-
a065c6bfe (dev), 8ec25c9d6 (dev), ab027eb73 (dev), f167150a6 (dev)
Description
Why?
Cause
- Otherwise,
-
- Editing the model from UI would not be possible.
- For dynamic models, it's still possible to use remove+add APIs but it usually forces destructing & constructing the objects of the view which add a major performance cost to applications.
Customer
- QML for Next minimal app
Cruft
What?
Definition
- QAbstractItemModel::setData & QAbstractItemModel::dataChanged need to be exposed on the Java class to let the user to create dynamic models that get partial updates.
Demarcation
Dependencies
- 6.9 FF
How?
Like current APIs, these two APIs can be exposed to the Java API. In Qt 6.8.0, there are no callback interfaces that can act as an equivalent to slot of the signal. Apart from adding these APIs, we may also need to add such callback interfaces & necessary APIs to connect to the callback.
Note: Alternatively, we may want to use QtSignalListener Java class as a generic interface, instead of adding new interfaces. QtSignalListener does not support multiple parameters but it's generic type, can still deliver a collection of parameters if we want to opt for such solution.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129387 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
597994,8 | Android: Add setData() and dataChanged() methods to QtAbstractItemModel | dev | qt/qtbase | Status: MERGED | +2 | 0 |
598001,10 | Android: Add OnDataChangedListerner callback interface | dev | qt/qtbase | Status: MERGED | +2 | 0 |
602360,6 | Android: Add test cases of editable QtAbstractItemModels | dev | qt/qtbase | Status: MERGED | +2 | 0 |
603887,8 | tst_AndroidItemModel::setData(): Extend timeout, use PMF connect | dev | qt/qtbase | Status: MERGED | +2 | 0 |