Hi everyone:
i'm a new Qtor who want to use in Android .
i use a qml ListView with a c++ model.
but when i delete the item in the model,the list view do not delete the item.
who can help me?thx!
my english is so so, sorry
Hi everyone:
i'm a new Qtor who want to use in Android .
i use a qml ListView with a c++ model.
but when i delete the item in the model,the list view do not delete the item.
who can help me?thx!
my english is so so, sorry
Is this a custom model
Does the model correctly emit the signals for row removal?
I.e. have you verified in C++ that rowsAboutToBeRemoved() and rowsRemoved() are correctly emitted when you delete an entry?
Cheers,
_
thank you for your reply
i'm use a QAbstractListModel
and now , i knew that , QAbstractListModel didnot emit dataChanged() auto
but, i do not know how to use the dataChanged signal
i ll google it,but now , i have no idea
do you have any document?
thank u very much!
dataChanged() is about existing cell data changing. There are different signals for removal of rows.
How do you handle removing of an entry?
Cheers,
_
Yes
now i have found it
i have no idea
i'm searching the answer now but have no result
Yes is not an answer to a question starting with "how".
Unless you are a Vorlon, of course.
Found what?
No idea where to find your code that handle removal of entries?
You must trigger the item deletion somewhere, that is a good place to start searching.
Cheers,
_
Mr A (18th March 2014)
i failed to do it.......
Bookmarks