Browse and play a video
Unsolved
Brainstorm
-
I need to browse a video and play it in Qt creator but it is difficult. Can anyone help me to solve this by giving a code to browse and play a video. I have a code to browse an image and display.
void MainWindow::on_pushButton_4_clicked()
{
QString fileName = QFileDialog::getOpenFileName(this,tr("select an image"),QDir::rootPath());
Img1 = new QPixmap(fileName);
Img = Img1->toImage();
ui->label_2->setPixmap(*Img1);
}So please help me with video code.
-