QFileSystemModel
doesn't have any item class. It doesn't create an object for each item.
You may find QFileSystemModel::filePath
and QFileSystemModel::index
methods useful. They allow to convert index to path and vice versa. Both index and path can be used as unique item identifier.
Disabling some items in QFileSystemModel
is not possible directly. You need to create a proxy model class that will return almost the same data and flags as the source model but remove Qt::ItemIsEnabled
flag when needed.