当前位置: 代码迷 >> QT开发 >> Qt取得的路径都是/这种斜杆,有没有地方设置成\\这种?该怎么解决
  详细解决方案

Qt取得的路径都是/这种斜杆,有没有地方设置成\\这种?该怎么解决

热度:30   发布时间:2016-04-25 04:55:13.0
Qt取得的路径都是/这种斜杆,有没有地方设置成\\这种?
现在显示要显示成\这种类型的斜杆,挺多地方要替换,不知道有没有快捷的设置?

------解决方案--------------------
For example, if you have installed Qt in the C:\Trolltech\Qt directory, and you run the regexp example, this function will return "C:/Trolltech/Qt/examples/tools/regexp".

你是想手动快捷替换,还是要写在程序中实现?
Ctrl+F or 字符串处理??
------解决方案--------------------
QDir::toNativeSeparators
------解决方案--------------------
探讨

QDir::toNativeSeparators

------解决方案--------------------
探讨

QDir::toNativeSeparators
  相关解决方案