So you want to mimic a directory tree? This is quite easy using QStandardItemModel. For each line of your output divide the path into components and use a hash of QStandardItem* instances to find parents of the element you are currently trying to position and simply attach the newly created item to the parent found. In the end you'll end up with a model consistent with your rsync output.
Bookmarks