qt error: variable `QPainter painter' has initializer but incomplete type
来源:互联网 发布:问答软件 编辑:程序博客网 时间:2024/05/29 14:37
QT中出现:error: variable `QPainter painter' has initializer but incomplete type
#include "picture.h"
#include "ui_picture.h"
#include"qpainter.h" //一开始在我自己的.cpp中没有加上这个声明,出现了那个错误,加上即可
picture::picture(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::picture)
{
ui->setupUi(this);
}
void picture::draw()
{
QPainter painter (this );
//painter.setPen( QPen( black, 8, DashDotLine) );
//painter.setBrush( QBrush( red, Dense6Pattern) );
//painter.drawEllipse( 20, 20, 100, 60 );
painter
}
picture::~picture()
{
delete ui;
}
- qt error: variable `QPainter painter' has initializer but incomplete type
- error: variable '__this_module' has initializer but incomplete type错误解决
- Error: variable 'QApplication app' has initializer but incomplete type
- error: variable ‘QApplication a’ has initializer but incomplete type
- error: variable '__this_module' has initializer but incomplete type错误解决
- variable `xxx' has initializer but incomplete type
- variable `xxx' has initializer but incomplete type
- variable `xxx' has initializer but incomplete type
- variable "xxx" has initializer but incomplete type
- 关于错误: error: variable ‘QApplication app’ has initializer but incomplete type
- variable 'std:ofstream' has initializer but incomplete type
- variable 'std:ofstream' has initializer but incomplete type
- paip.variable xxx has initializer but incomplete type 解决方案
- variable 'std:ofstream' has initializer but incomplete type 错误
- error: field ‘?’ has incomplete type
- error: field * has incomplete type
- error: array type has incomplete element type
- QT编译出错 field has incomplete type
- 查看linux的版本情况
- ndiswrapper最新版本的下载
- 注意UIView的backgroundColor还可以直接使用图片的
- Register int i;的含义
- .NET程序员,我们应该更专业点
- qt error: variable `QPainter painter' has initializer but incomplete type
- html 不能固定图片长宽
- 几种ETL模式
- Hadoop+Hbase+ZooKeeper 安装配置及需要注意的事项
- onkeypress与onkeyup与onkeydown的联系
- Linux如何实现进程O(1)调度
- Exception Handling框架
- VB.Net Timer 控件的用法
- 二.Socket用法详解 .