How to simulate the cancel button pressing for QFileDialog
?
Searching doesn't help much here as most threads (like this one) are talking about simulating key pressing for QT application, not particularly for a QFileDialog
.
P.S.: I want to do this because currently I am using a library created by others, the code somehow depend on the QFileDialog
to open. It is becoming very annoying if needing user intersection each time by manually pressing the cancel button.
Any help is appreciated.