I'm using a QML list view which displays one element at a time
ListView
{
model: cppobj.list
...
}
cppobj
is a C++ object which can be modified, i.e. items can be removed, appended, etc. If an element is appended, the ListView goes back to the first element. What's more ListView.onRemove
is not called. Any ideas how to cope with it?
Thanks
/edit: the append
function of the C++ object looks like that:
void append (QString str) { m_list.append(str); emit listChanged(m_list); }