Details
-
User Story
-
Resolution: Done
-
P1: Critical
-
None
-
None
-
-
2024wk22s2FOQtforAndroid, 2024wk24s2FOQtforAndroid, 2024wk26s2FOQtforAndroid, 2024wk38s2FOQtforAndroid, 2024wk28s2FOQtforAndroid, 2024wk30s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk36s2FOQtforAndroid, 2024wk40s3FOQtforAndroid
-
d9ceacd41 (dev), 333dd9e27 (dev)
Description
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);
Attachments
Issue Links
- depends on
-
QTBUG-125723 Android type converters is missing Java Long type
- Closed
-
QTBUG-125888 Complex data exchange - QAbstractListModel integration as QtAbstractListModel
- Closed
- split to
-
QTBUG-125888 Complex data exchange - QAbstractListModel integration as QtAbstractListModel
- Closed
(1 mentioned in)