【Qt】错误:'connect' was not declared in this scope 解决方法
2018-02-28 12:02
1226 查看
这种错误主要出现在在非继承QObject的类中或者一般函数中使用connect导致,原因是connect是QObject的一个static方法。
将connet替换为QObject::connect即可。
将connet替换为QObject::connect即可。
相关文章推荐
- error: ‘exit’ was not declared in this scope 的解决方法
- Codeblocks编译C++出现to_string is not a member of std 或者 to_string was not declared in this scope的解决方法
- string was not declared in this scope问题解决方法
- android NDK编译ffmpeg错误 'UINT64_C' was not declared in this scope的解决
- error: ‘exit’ was not declared in this scope 的解决方法
- [Error] 'exit' was not declared in this scope的解决方法
- v4l2驱动摄像头 出现错误UINT64_C' was not declared in this scope 解决
- mingw32-make+cmake:error: 'nullptr' was not declared in this scope解决方法
- error: ‘exit’ was not declared in this scope 的解决方法
- 安装fcgi时出现:error: ‘EOF’ was not declared in this scope解决方法
- ‘hash_map’ was not declared in this scope的解决方法
- C++出现to_string is not a member of std 或者 to_string was not declared in this scope的解决方法
- 关于g++ memcpy’ was not declared in this scope解决方法
- C++ 中error: ‘exit’ was not declared in this scope 的解决方法
- 昨天的错误修改后,make出现error: 'UINT64_C' was not declared in this scope
- 关于 ffmpeg ‘UINT64_C’ was not declared in this scope 的错误
- BOOST ThreadPool 编译错误"TIME_UTC was not declared in this scope"
- qt-everywhere-opensource-src-4.8.1 出错:error: 'IPV6_MULTICAST_HOPS' was not declared in this scope
- C++ - 错误: " 'strdup' was not declared in this scope "
- ndk编译错误:error: 'nullptr' was not declared in this scope