关于 error: comparison between ... 'QPushButton*' and 'QAbstractButton*' lacks... 的解决方法

简介: 关于 error: comparison between ... 'QPushButton*' and 'QAbstractButton*' lacks... 的解决方法

需求

       修改他人代码出现报错如下:

图片.png

error: comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast


解决方法

      加入#include<QPushButton>

图片.png

error: comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast



目录
打赏
0
0
0
0
54
分享
相关文章
TypeError:Joi.validate is not a function 解决办法
TypeError:Joi.validate is not a function 解决办法
成功解决:Error in created hook: “ReferenceError: params is not defined“
该博客文章描述了作者解决"ReferenceError: params is not defined"错误的过程,原因是路由传递的params参数与调用方法中的参数名称冲突,最终通过检查接口参数解决了问题。
成功解决:Error in created hook: “ReferenceError: params is not defined“
|
7月前
|
CDN
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
Iconfont——Error: <path> attribute d: Expected number, "MNaNNaNaNaNNaNNaN…".
74 0
Parsing error: duplicate-attribute.eslintvue/no-parsing-error,Eslint如何添加两个@Click事件
Parsing error: duplicate-attribute.eslintvue/no-parsing-error,Eslint如何添加两个@Click事件
|
10月前
|
Pygame AttributeError no attribute ‘display‘问题及其解决方法
Pygame AttributeError no attribute ‘display‘问题及其解决方法
256 4
小程序报错-ReferenceError: regeneratorRuntime is not defined
小程序报错-ReferenceError: regeneratorRuntime is not defined
150 0
error: static assertion failed: Signal and slot arguments are not compatible.
error: static assertion failed: Signal and slot arguments are not compatible.
error: static assertion failed: Signal and slot arguments are not compatible.
解决办法: error: passing ‘const VideoFrame’ as ‘this’ argument discards qualifiers [-fpermissive]
解决办法: error: passing ‘const VideoFrame’ as ‘this’ argument discards qualifiers [-fpermissive]
255 0
Vue3如何关闭eslint:error Expected indentation of 0 spaces but found 4 indent
Vue3如何关闭eslint:error Expected indentation of 0 spaces but found 4 indent
541 0
Vue3如何关闭eslint:error Expected indentation of 0 spaces but found 4 indent
Python 缩进问题-inconsistent use of tabs and spaces in indentation.原因及解决方法
Python 缩进问题-inconsistent use of tabs and spaces in indentation.原因及解决方法
6340 0
Python 缩进问题-inconsistent use of tabs and spaces in indentation.原因及解决方法