新人求教关于Qt绘图问题。。。解决问题有追加 10
cpp文件显示有6个错误。。。5:error:nomatchingfunctionforcallto'QWidget::QWidget(QWidget*&,constch...
cpp文件显示有6个错误。。。
5: error: no matching function for call to 'QWidget::QWidget(QWidget*&, const char*&)' :QWidget( parent, name ) :8: error: no matching function for call to 'QFrame::QFrame(DrawDemo* const, const char [6])' frame = new QFrame( this,"frame" ); 9: error: no matching function for call to 'QFrame::drawFrame(Qt::GlobalColor)' frame->drawFrame(Qt::black); 16: error: no matching function for call to 'QTimer::QTimer(DrawDemo* const, const char [6])' QTimer *timer = new QTimer( this, "timer" ); 30: error: 'TRUE' was not declared in this scope repaint( 0, 0, 480, 320,TRUE ); 34: error: 'class QFrame' has no member named 'erase' frame->erase( 0, 0, 400, 320 ); 是不是因为是Qt5.31了所以好多绘图的函数都改了?应该用什么函数来替代呢? 感激不尽T T 展开
5: error: no matching function for call to 'QWidget::QWidget(QWidget*&, const char*&)' :QWidget( parent, name ) :8: error: no matching function for call to 'QFrame::QFrame(DrawDemo* const, const char [6])' frame = new QFrame( this,"frame" ); 9: error: no matching function for call to 'QFrame::drawFrame(Qt::GlobalColor)' frame->drawFrame(Qt::black); 16: error: no matching function for call to 'QTimer::QTimer(DrawDemo* const, const char [6])' QTimer *timer = new QTimer( this, "timer" ); 30: error: 'TRUE' was not declared in this scope repaint( 0, 0, 480, 320,TRUE ); 34: error: 'class QFrame' has no member named 'erase' frame->erase( 0, 0, 400, 320 ); 是不是因为是Qt5.31了所以好多绘图的函数都改了?应该用什么函数来替代呢? 感激不尽T T 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询