blob: 58bf1ccd04cc36ea1fb504b26fcecc5c1d0a8145 [file] [log] [blame]
import QtQuick 2.0
ListModel {
id: model
property bool ok : false
Component.onCompleted: {
model.append({"attrs": []})
model.get(0)
model.set(0, {"attrs": [{'abc': 123, 'def': 456}] } )
ok = ( model.get(0).attrs.get(0).abc == 123
&& model.get(0).attrs.get(0).def == 456 )
model.set(0, {"attrs": [{'abc': 789, 'def': 101}] } )
ok = ( model.get(0).attrs.get(0).abc == 789
&& model.get(0).attrs.get(0).def == 101 )
}
}