How to launch a file browser in a Qt application?

kehao picture kehao · Apr 9, 2011 · Viewed 37.2k times · Source

I want to have a button that, when clicked, launches a file browser (like Ctrl + O in Word) and returns the path of the file that user opens.

I know how to make the button, but what should I do in the slot that responds to mouseClicked signal?

Answer

ChrisV picture ChrisV · Apr 9, 2011