您的位置:首页 > 移动开发 > Objective-C

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类

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: