I had a look for the answer to this but couldn't find anything on here so I'm asking it.
With QStandardModel
it is fairly straight forward to get the item from the QModelIndex
with the command function itemFromIndex
.
model = openedIndex.model()
item = model.itemFromIndex(openedIndex)
I'm interested in doing basically the same but for QFileSystemModel
, is there an easy or straight forward way for me to do this. Couldn't see anything in the docs.