The proxy model works with the data contained in the base model, so you cannot use it to get completely new model content.
The obvious way to accomplish such tasks is to research which model QFileDialog has, and then replace the model.
, , QFileDialog, , , - : ( QFileDialog, 't ), setSourceModel(), .
QFileDialog , , . , , , - .