Qt+VS "ErrorC1083Cannot open source file: 'GeneratedFiles\Debug\moc_xxx"
来源:互联网 发布:网络保险中介会倒闭吗 编辑:程序博客网 时间:2024/06/05 06:17
平时用VS+Qt开发的时候,新建类,偶尔会遇到“Error C1083 Cannot open source file: 'GeneratedFiles\Debug\moc_xxx"的错误,记录一下。
其实很简单。新建的类继承了Qt的类,应该写完构造函数和析构函数的时候编译一遍,然后再添加自己的函数。
简单说:
1:除了构造函数和析构函数以外的函数都先注释掉。
2:编译一遍。
3:再打开注释的函数,再次编译。
阅读全文
0 0
- Qt+VS "ErrorC1083Cannot open source file: 'GeneratedFiles\Debug\moc_xxx"
- vs intellisense cannot open source file
- open source debug issues
- Qt Open Source Download
- VS下Qt生成ui_xxx.h和moc_xxx.cpp的路径设置
- Qt Creator编译时:cannot open file 'debug\QtGuiEx.exe' File not found
- CUDA VS Wizard Open Source
- cannot open source file "boost..."
- Ubuntu下vs code 中出现cannot open source file "iostream"
- qt :-1: 错误:cannot open output file debug\test2.exe: Permission denied 类似错误
- Android Studio Debug Android Open Source Project
- moc_xxx No Such file or directory.cpp
- gawk: fatal: can't open source file
- cannot open source file "asm/errno.h"
- VS2012出现“cannot open source file "iostream"”
- VS2013: Intellisense cannot open source file “*.h”
- error : cannot open source file "SDKDDKVer.h"
- error: C1083: Cannot open source file: *idl
- lua 分割字符串
- bootstrap Maximum call stack size exceeded
- comma.ai的数据集下载不了
- 解决友盟推送(U-Push)的register不成功,返回错误信息s=-11,s1=accs bindapp error
- Android open source TextView中的文本自动对齐
- Qt+VS "ErrorC1083Cannot open source file: 'GeneratedFiles\Debug\moc_xxx"
- poj 2386 lake counting
- 单机环境搭建kafka
- Fiddle使用
- 【bzoj1486】【[HNOI2009]梦幻布丁】启发式链表合并(详解)
- wampserver 的安装和使用
- 腾讯云重装为centos6.7 x64 后重新挂载原NTFS云硬盘
- 目标完美程序员!你看好编码规范吗?
- 04.类的初始化