So, you may need to create another widget for the QFileDialog, and not use the one used by application. Also as required by your logic, you may transfer data between the application widget and QFileDialog widget