[Qt-jambi-interest] Model/View problem: remove functionality for the model
Gunnar Sletta
gunnar at trolltech.com
Wed Aug 20 07:31:32 CEST 2008
Ying Ma wrote:
>
> Research & Development
> ------------------------------------------------------------------------
>
> Dear sir,
>
> When I tried to remove some model indexes from the model, I saw the
> whole model index list
> of the model changed so the previous selection became a mess. I do use
> "beginRemoveRows()"
> and "endRemoveRows()" to inform both the model and the views attached to
> the model. On the
> other hand, it doesn't has any problem when I tried to add some model
> indexes to the model.
> Any clue for it? Is there any ways to maintain the model index list
> for the model when perform
> the remove functionality? How to make the rest can works well when I
> remove some from the
> model?
Hi,
I've reproduced this and spun off a task to the itemviews team.
best regards,
Gunnar
More information about the Qt-jambi-interest
mailing list