QT中 :-1: error: Failed to resolve include /moc_predefs.h“ for moc file

QT中 在构建时,出现如下问题:
error: Failed to resolve include “E:/QT_bji/QT/?Qt?Qt Quick???/src/5/5-1/build-chat-Desktop_Qt_5_11_3_MSVC2017_64bit-Debug/debug/moc_predefs.h” for moc file E:\QT_bji\QT\src_shizhan\src\5\5-1\chat\widget.h

最后发现:QT路径中有中文,最后改了就行了
QT中 :-1: error: Failed to resolve include /moc_predefs.h“ for moc file_第1张图片

你可能感兴趣的:(QT,qt,开发语言,visual,studio)