アニメーション GIF をプログラムに入れようとしています。
ただし、適切な構文に従うと
QMovie *hit1=new QMovie("BadExplosion.gif");
QLabel *processLabel=new QLabel(this);
processLabel->setMovie(hit1);
hit1->start();
の中に
void TestApp::draw()
{
//this code and other drawing code here
}
エラーが発生しました
エラー C2664: 'QLabel::QLabel(QWidget *, Qt::WindowFlags)': 行のパラメーター 1 を 'TestApp *const' から 'QWidget *' に変換できません
QLabel *processLabel=new QLabel(this);
何か案は?ありがとう!
編集: TestApp はカスタム クラスです。