QList<QString> qlist = path.split(QRegExp("[\\\\/]")); QString FileName = qlist.at(qlist.size()-); //截取路径中最后一段