qt_user
28th July 2010, 12:32
void MainWindow::openFileDialog()
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Image"), "c:/", tr("Image Files (*.png *.jpg *.bmp *.avi)"));
movie = new QMovie(fileName);
movie->setFileName(fileName);
label->setMovie(movie);
movie->start();
workspace->addWindow(label);
label->show();
}
On executing this function, an image is getting opened but a video is not getting opened(only blank label is displayed).
Please help........
aman.taneja.2008@gmail.com
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Image"), "c:/", tr("Image Files (*.png *.jpg *.bmp *.avi)"));
movie = new QMovie(fileName);
movie->setFileName(fileName);
label->setMovie(movie);
movie->start();
workspace->addWindow(label);
label->show();
}
On executing this function, an image is getting opened but a video is not getting opened(only blank label is displayed).
Please help........
aman.taneja.2008@gmail.com