QFileInfo fileinfo;
QString file_full = ui->m_AlgorithmFilePathLineEdit->text();
qDebug() << file_full ; //输出1
fileinfo = QFileInfo(file_full);
//文件名称
QString file_name = fileinfo.fileName();
qDebug() << file_name ; //输出2
//文件后缀格式
QString file_suffix = fileinfo.suffix();
qDebug() << file_suffix; //输出3
//文件绝对路径
QString file_path = fileinfo.absolutePath();
qDebug() << file_path; //输出4
========运行结果=======
"D:/Code20190709/aaa_course/ray/tant/Branch/work/Algorithm_File.bin" //输出1
"Algorithm_File.bin" //输出2
"bin" //输出3
"D:/Code20190709/aaa_course/ray/tant/Branch/work" //输出4