[Qt-creator] The .pro file could not be parsed
2017-02-07 15:10
369 查看
问题描述:
当使用QT5 Creator加载一个项目并且添加新的现有文件后,无法启动调试自启动/调试按钮,程序的程序或者是灰色的,如果移动鼠标上的按钮,工具提示会显示它说:“.pro文件无法解析”。问题解决:
方法一:把SOURCES HEADERS 参数中的 “\” 都去掉变成下边这样
SOURCES += main.cpp mainwindow.cpp hintdialog.cpp HEADERS += mainwindow.h hintdialog.h
方法二:
注意SOURCES HEADERS 参数中新加文件前空格数是否为4 的倍数。不是的话,不好意思,一定显示“The .pro file could not be parsed”
正常情况(+号表示空格 )
SOURCES += main.cpp\ ++++++++mainwindow.cpp\ ++++hintdialog.cpp HEADERS += mainwindow.h\ ++++hintdialog.h
错误情况
SOURCES += main.cpp\ ++++++++mainwindow.cpp\ ++++hintdialog.cpp 这里hintdialog.h前有5个空格是不对的。 HEADERS += mainwindow.h\ +++++hintdialog.h
相关文章推荐
- [Qt-creator] The .pro file could not be parsed
- Xcode文件被锁定:The file ".xcodeproj" could not be unlocked
- The package lists or status file could not be parsed or opened的解决
- The package lists or status file could not be parsed or opened.
- apt update error "E: The package lists or status file could not be parsed or opened."
- The package lists or status file could not be parsed or opened.
- [Ubuntu] "The package lists or status file could not be parsed or opened"
- Qt Creator The process could not be started!
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI的彻底解决
- 错误:The message received from the server could not be parsed.
- The "https://packagist.org/packages.json" file could not be downloaded
- System.IO.FileNotFoundException: The specified module could not be found.
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI
- the session file could not be loaded
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI 解决办法
- 安装VisualDSP++出现Install cannot proceed.Could not find XML file or the XML file may be corrupted!
- 关于在xcode中使用Versions时,比较文件出现The File Merge application could not be located. 解决方法
- Citrix的一个安装问题(The Configuration file(s) for this site could not be read )
- Kettle 连接 oracle 报错:could not be found, make sure the 'Oracle' driver (jar file) is installed.
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI的彻底解决