QT、VS常见bug及解决办法(五)——警告 1 warning C4129: “Q”: 不可识别的字符转义序列 E:\QT text\the project of Player\grey_level

文件路径的\反斜杠,是字符串转移字符,要在字符串常量中使用反斜杠,需要两个连着。即:
"D:\\xxx\\1.jpg"

转自:https://wenda.so.com/q/1462058852725168

猜你喜欢

转载自blog.csdn.net/qq_37764129/article/details/81182350