qt如何去掉文件路径最后一个反斜杠的内容
QString strTemp = “E:\\hell\\word\\detect.txt”
int nIndex = strTemp.lastIndexOf('\\');
strTemp = strTemp.left(nIndex);
知识就是希望
QString strTemp = “E:\\hell\\word\\detect.txt”
int nIndex = strTemp.lastIndexOf('\\');
strTemp = strTemp.left(nIndex);