qt如何去掉文件路径最后一个反斜杠的内容

QString strTemp = “E:\\hell\\word\\detect.txt”
   int nIndex = strTemp.lastIndexOf('\\');
    strTemp = strTemp.left(nIndex);

posted on 2019-06-24 10:43  lydstory  阅读(544)  评论(0)    收藏  举报

导航