QtCreator + Visual Studio编译器编译错误 error: LNK1181: cannot open input file 'debug\main.obj'


QtCreator + Visual Studio编译器编译错误 error: LNK1181: cannot open input file 'debug\main.obj'

使用重新构建、清楚等命令也无法解决。
.pro或者.pri文件中的头文件出现如下情况(两个反斜杠)时会出现该问题。
删除一个\即可解决。

HEADERS += \ \
    XX1.h \
    xx2
# OR 
SOURCES += \ \
    XX1.cpp \
    xx2.cpp \
    yy.cpp

参考

1.stackoverflow - Qt error: LNK1181: cannot open input file 'debug\main.obj'