Search code examples
c++qtqfiledialog

Simulate click on "Choose" button in QFileDialog object


I'd like to simulate click on "Choose" button for automatic testing purpose, but unfortunately I have no idea how to achieve that. Operation system is Ubuntu 16.04. I'd be grateful for code example.


Solution

  • Call your button-handler from wherever you want to test it from.