You might have hit this warning while you are trying to include source files located under sub directories to a Qt project.
Fix to solve this warning is very simple!
This warning occurs whenever you try to use backslash (\) as path separator. To avoid this warning just use forward slash (/) as your path separator, instead of backslash (\). Qt uses Unix style path separator (/) irrespective of the platform.
Fix to solve this warning is very simple!
This warning occurs whenever you try to use backslash (\) as path separator. To avoid this warning just use forward slash (/) as your path separator, instead of backslash (\). Qt uses Unix style path separator (/) irrespective of the platform.
Example: If you want to include parent directory use ../ instead of ..\
From: http://www.openguru.com/2011/10/fixing-qt-warning-unescaped-backslashes.html

在尝试包含位于子目录下的源文件到Qt项目时,可能会遇到警告提示。解决此问题非常简单:只需将路径分隔符从反斜杠更改为正斜杠,因为Qt在所有平台上都使用正斜杠作为路径分隔符。

5126

被折叠的 条评论
为什么被折叠?



