mypaint.cpp:29: 错误:‘class QString’没有名为‘setLength’的成员
mypaint.cpp: At global scope:
mypaint.cpp:35: 警告:未使用的参数‘painter’
mypaint.cpp: In member function ‘virtual void Mypainter::paintEvent(QPaintEvent*)’:
mypaint.cpp:50: 错误:invalid use of incomplete type ‘struct QPaintEvent’
/usr/lib/qt4/include/QtGui/qwidget.h:80: 错误:forward declaration of ‘struct QPaintEvent’
mypaint.cpp:53: 错误:‘class QPixmap’没有名为‘resize’的成员
mypaint.cpp:56: 错误:对‘QPainter::QPainter(QPixmap*, Mypainter* const)’的调用没有匹配的函数
/usr/lib/qt4/include/QtGui/qpainter.h:497: 附注:备选为: QPainter::QPainter(const QPainter&)
/usr/lib/qt4/include/QtGui/qpainter.h:99: 附注: QPainter::QPainter(QPaintDevice*)
/usr/lib/qt4/include/QtGui/qpainter.h:98: 附注: QPainter::QPainter()
mypaint.cpp:57: 错误:‘red’在此作用域中尚未声明
mypaint.cpp:66: 错误:invalid use of incomplete type ‘struct QPaintEvent’
/usr/lib/qt4/include/QtGui/qwidget.h:80: 错误:forward declaration of ‘struct QPaintEvent’
mypaint.cpp:66: 错误:‘bitBlt’在此作用域中尚未声明
mypaint.cpp: In member function ‘void Mypainter::changeRate(int)’:
mypaint.cpp:85: 错误:‘class QTimer’没有名为‘changeInterval’的成员