hi,

i have a model which is displayed by a treeview. the model subclasses
QAbstractItemModel.
using a selection model i can delegate the selection from the view to the
model. but how do i delegate the selection from the model to the view?
to call select() (QItemSelection) i need a modelindex. to get a modelindex
i need a row, a column and a parent which i do not have,
traversing the model to get these is to time consuming. i thought about
storing a persistent model index for each item but this sounds memory
consuming to me a i suppose there are better ways.
any hints?

best regards,
jh