I have an application running on RHEL 7.3 and in this application the user opens an XML file. They can either pass in this file as a command line argument or through a File Dialog. I use the static function QFileDialog::getOpenFileName() but noticed in the Qt docs it says for Windows and MAC, it uses a native dialog. But in Linux it appears it uses a QtDialog. Is there a way to make the application use the RHEL specific file choosing dialog. The directory it needs to open to has approximately 4000 files in it and the dialog is a bit slow (upwards of a minute) for selecting a file. I thought maybe using a native dialog to RHEL would help speed this up? Has anybody experienced this issue before? These machines have 8 GB or 16 GB of RAM in them. It might be there is no way to make this faster, just thought I would ask other people before telling them they have to deal with the slowness until they clean up their directory.

Thanks!