想在QT程序中使用鼠标事件,添加重载的响应函数,并实现后,一直提示 member access into incomplete type 'QMouseEvent'
既然使用了QMouseEvent类,就应该将其头文件包含进去,在.h中加入: #include <QMouseEvent> 问题解决!
以后遇到类似的记得包含其对应的头文件!
想在QT程序中使用鼠标事件,添加重载的响应函数,并实现后,一直提示 member access into incomplete type 'QMouseEvent'
既然使用了QMouseEvent类,就应该将其头文件包含进去,在.h中加入: #include <QMouseEvent> 问题解决!
以后遇到类似的记得包含其对应的头文件!
前言QtCreator 报错"member access into incomplete type QHeaderView"#解决加入头文件#include
Qt编译错: 'UnicodeUTF8' is not a member of 'QApplication'
需要自己手动导入库#import <UIKit/UIKit.h>
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M