Which is why ChrisW67 suggested doing the renaming in code you control.
For example with a custom delegate to handle the editing differently, or a model derived from QFileSystemModel and a setData() override that handles it differently or a proxy model inbetween the unchanged model and the view with a setData() that handles the rename.
Cheers,
_
Bookmarks