The only way I can think of is to make a list, but this way I have to anticipate all possible types of files, that is not possible.
Qt Code:
  1. QFileDialog dialog(this);
  2. dialog.setFileMode(QFileDialog::ExistingFile);
  3. dialog.setNameFilter(tr("All files except .exe (*.png *.xpm *.jpg *.pdf *.gif ............infinite extensions..........)"));
To copy to clipboard, switch view to plain text mode 

Anyone has a better idea?
Thank you very much.