error: invalid use of incomplete type 'struct QBitmap'
ShapeWidget::ShapeWidget(QWidget *parent)
: QWidget(parent, Qt::FramelessWindowHint)
{
QPixmap pix;
pix.load(":/images/tux.png", 0, Qt::AvoidDither | Qt::ThresholdDither | Qt::ThresholdAlphaDither);
resize(pix.size());
setMask(pix.mask());
}
编译时:出现如下错误:
E:/qtProject/shapewidget/shapewidget.cpp:11: error: invalid use of incomplete type 'struct QBitmap'
不是什么原因导致这个错误. 请教一下大虾。
谢谢!