qt出现警告 Unescaped backslashes are deprecated!解决办法

Fixing Qt Warning: Unescaped backslashes are deprecated!

From: http://www.openguru.com/2011/10/fixing-qt-warning-unescaped-backslashes.html

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.

Example: If you want to include parent directory use ../ instead of ..\

posted on 2013-04-01 08:59  涛涛宝贝  阅读(2682)  评论(0编辑  收藏  举报

导航