Touchscreen failure after double click on file in QFileDialog
-
Hello.
I have an application (Qt 5.15.2) which uses QFileDialog::getOpenFileName() to select a file, which works fine with the mouse or keyboard. However, if touchscreen is used for double clicking on a file, it will return the file name correctly, but the application stops responding to touchscreen events afterwards. There is no problem browsing the directories with touchscreen double clicks, but when a file is opened with double click once, this problem happens. The buttons cannot be clicked with touchscreen anymore. It looks like Qt has a wrong state about touchscreen events, so that it will not convert them to mouse click events anymore. Is there a way to recover touchscreen functionality after this happens?
Or, is there a way to avoid double clicking for files in QFileDialog, while allowing double clicks for directories?