Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

List Model How to Append data

$
0
0
I have my list mode   ListModel {             id: nestedModel           } and I can append the list model using the code nestedModel.append({      locationName: qsTr("Location5"),     collapsed: true,        folders: [{                   folderName: qsTr("Cam11")                   }, {                   folderName: qsTr("Cam22")                   }, {                   folderName: qsTr("Cam33")                   }, {                  folderName: qsTr("Cam44")                  }]              }) Which works fine. But I need to append the inner list only using the same append model, like I have already “Cam11,Cam22,Cam33,Cam44” in my list model, and I have to append “Cam55,Cam66” dynamically. How it’s possible? Any help will be appreciated… Thanks Haris

Viewing all articles
Browse latest Browse all 4972

Trending Articles