error: type 'QObject' is not a direct or virtual base of 'SendFile'
2021-06-23 16:28
1821 查看
今天遇到了一个错误 详细信息如下 sendfile.cpp:3:39: error: type 'QObject' is not a direct or virtual base of 'SendFile'
在QtCreator中报错 很迷惑,为啥不能这样写
SendFile是我自己定义的一个类
问题解决方法:
加上继承QObject类
相关文章推荐
- python TypeError: 'module' object is not callable
- Python NameError: name 'unicode' is not defined
- OpenCV Error: Unspecified error (The function is not implemented...
- Uncaught TypeError: sum is not a function
- TypeError: db.collection is not a function
- 异常解决:Error contacting service. It is probably not running.
- redis:Unable to validate object ;Could not get a resource from the pool;(error) MISCONF Redis is con
- ImportError: The _imagingft C module is not installed
- Error: Your project contains C++ files but it is not using a supported native build system
- Swift:Call can throw, but it is not marked with 'try' and the error is not handled
- Android开发错误:Error:” ” is not translated in “en” (English) [MissingTranslation]处理方法?
- 运行用例时,报错Unknow Error:Element xxx is not clickable……的解决方法
- TypeError: $(...).form is not a function
- SharePoint 2007 计算列公式错误解决一例: The formula contains a syntax error or is not supported
- vue项目使用手机浏览器访问时报错:Uncaught TypeError: Object.assign is not a function
- ORA-06502:PL/SQL numeric or value error:associate array shape is not consistent with session parame
- Required MultipartFile parameter 'file' is not present error
- layui报错Uncaught TypeError: tree is not a function
- WSDL.EXE Error: Not enough storage is avaliable to process the command.
- pod》error:The dependency `` is not used in any concrete target