- 
     User Story User Story
- 
    Resolution: Done
- 
    P1: Critical 
- 
    None
- 
    None
- 
        
- 
        2024wk22s2FOQtforAndroid, 2024wk24s2FOQtforAndroid, 2024wk26s2FOQtforAndroid, 2024wk38s2FOQtforAndroid, 2024wk28s2FOQtforAndroid, 2024wk30s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk36s2FOQtforAndroid, 2024wk40s3FOQtforAndroid
- 
        d9ceacd41 (dev), 333dd9e27 (dev)
Why?
Enables complex data exchange between Java and QML
How?
Creating an equivalent Java interface/abstract for QAbstractItemModel which can be set as a property to QtQuickView.
Possible Scenarios
// A QtAbstractItemModel has been implemented by user MyConcreteModel model; qtQuickView.setProperty("dataModel", model); // the model will be used as an instance of QAIM in Quick application
// QML: A QAbstractItemModel instance exists in the Quick component ListView { property ListModel dataModel : MyListModel{} } //Java: MyConcreteModel model = (MyConcreteModel)qtQuickView.getProperty("dataModel"); model.insertRow(10, 20, 30);
- depends on
- 
                    QTBUG-125723 Android type converters is missing Java Long type -         
- Closed
 
-         
- 
                     QTBUG-125888
        Complex data exchange - QAbstractListModel integration as QtAbstractListModel QTBUG-125888
        Complex data exchange - QAbstractListModel integration as QtAbstractListModel-         
- Closed
 
-         
- split to
- 
                     QTBUG-125888
        Complex data exchange - QAbstractListModel integration as QtAbstractListModel QTBUG-125888
        Complex data exchange - QAbstractListModel integration as QtAbstractListModel-         
- Closed
 
-         
             (1 mentioned in)
        
    | For Gerrit Dashboard: QTBUG-124803 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 560702,14 | Android: Move Java types and conversion functions to their own header | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 563554,56 | Android: Add auto tests for Java QtAbstractItemModel | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 564356,20 | Docs: Document QtAbstractItemModel and QtModelIndex Java Classes | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 568704,44 | Android: Add QtAbstractItemModel Android Java example | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 572063,23 | Android: Add documentation for QtAbstractItemModel Java API example | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 | 
| 574452,2 | Docs: Document QtAbstractItemModel and QtModelIndex Java Classes | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 580002,2 | Android: Add QtAbstractItemModel Android Java example | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 580479,2 | Android: Add documentation for QtAbstractItemModel Java API example | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
