QString file_full, file_name, file_path;  
QFileInfo fi;

file_full = QFileDialog::getOpenFileName(this);

fi = QFileInfo(file_full);
file_name = fi.fileName();
file_path = fi.absolutePath();