I have in a code that makes a listing of teachers with their proper graduations that is stored with the txt file, making due opening with variable ifstream, using open with the name of the file on disk. So I call the class constructor in mainwindow.cpp like this:
TP2::ProfessorDAO teste("/Users/eugeniojulio/Documents/2015/PUC_2015/PUC_2015_2/TP2/ArquivoDeDados.csv");
Soon this will be the last parameter to open open my file, but obviously this has to be done previously in the code, and I would like to know how the user, when clicking a button, open the directory for there user to select the desired file and open it if it is valid.