需求
修改他人代码出现报错如下:
error: comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast
解决方法
加入#include<QPushButton>
error: comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast
修改他人代码出现报错如下:
error: comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast
加入#include<QPushButton>
error: comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast