내 프로그램에 애니메이션 GIF를 넣으려고합니다. 'QLabel :: QLabel (는 QWidget *, Qt는 : 나는 올바른 구문오류 C2664 : 'App * const'to 'QWidget *'
void TestApp::draw()
{
//this code and other drawing code here
}
에서
QMovie *hit1=new QMovie("BadExplosion.gif");
QLabel *processLabel=new QLabel(this);
processLabel->setMovie(hit1);
hit1->start();
를 수행 할 때
그러나, 나는 오류
오류 C2664로 실행 :: WindowFlags) ': 매개 변수 1을'TestApp * const '에서 줄의'QWidget * '으로 변환 할 수 없습니다.
QLabel *processLabel=new QLabel(this);
아이디어가 있으십니까? 감사!
EDIT : TestApp는 맞춤 클래스입니다.
'TestApp'란 무엇입니까? 커스텀 클래스? 아니면 다른 것으로부터 파생됩니까? – JBL
TestApp가 무엇인지 편집했습니다. – Chromelon