Browse and play a video
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.
QString fileName = QFileDialog::getOpenFileName(this,tr("select an image"),QDir::rootPath());
Img1 = new QPixmap(fileName);
Img = Img1->toImage();
So please help me with video code.
@Bharathi Thanks a lot :)