PDA

View Full Version : QAbstractItemModel and select folder after found match



matsukan
9th September 2016, 20:03
I can found existing parent item when using model class match() function which return valid QModelIndexList. However, how I will activated or 'selected it' in Qt 5 when using model as tree model ?

I'am using QAbstractItemModel and I called it from QML side via other model class.

anda_skoa
10th September 2016, 10:15
QML DelegateModel can be used to see the children of a tree model's node as a list model.

Cheers,
_

matsukan
12th September 2016, 11:33
Ok I see, thanks.