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

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

猜你喜欢

转载自www.cnblogs.com/hshy/p/11075833.html