I am using Qt and Ruby in an application where I have to manipulate some directories and rename/move files. However, prior to the actual manipulation I need to show a "preview", ie, simulation of the changes. What I've done on OS X and Linux is a collection of mkdir and touch commands, in a writable tmp space, to build my said "directory tree", fed that to Qt's QFileSystemModel widget and QTreeView, and I'd get my expected results.
However, I can not do that on Windows, because I have found no native counterpart to touch and thus I could not show the files. One suggestion that came to mind is to create my directory tree in memory, but then I can not feed it to QFileSystemModel anymore.
How can I do this?