I need to create a version of QFileDialog that optionally concatentates numbered file sequences into a single entry. So it should combine
image.0001.exr image.0002.exr image.0003.exr
into
image.%04d.exr [1-3]
This string should be displayed in the file list and also be returned by QFileDialog::selectedFile() if it is chosen.

I know in general how to scan a list of file names and turn it into a list of sequences, but I can't work how to do that in a QFileDialog.

Any suggestions on how to do this? Can I use a QAbstractProxyModel to filter out all but the first file in each sequence? How can I change entries in a QFileDialog (so I can change "image.0001.exr" to "image.%04d.exr [1-3]")