I have to create items based on the file system in the directory. it is mandatory that i have to use QGraphicsView and not (QTreeView/QListView) so how i can manage to hold a QModel for the graphicsScene. can any one help me suggest or refer an example of how i can load QFileModel with the QGraphicsScene.
You don't need QFileModel
for it. Use QDir::entryInfoList
to get list of files and QFileSystemWatcher
to track modification of file system.