Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Browse and play a video
Forum Updated to NodeBB v4.3 + New Features

Browse and play a video

Scheduled Pinned Locked Moved Unsolved Brainstorm
3 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Saran DeepakS Offline
    Saran DeepakS Offline
    Saran Deepak
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • BharathiB Offline
      BharathiB Offline
      Bharathi
      wrote on last edited by
      #2

      Start from here :
      http://doc.qt.io/archives/qt-5.5/qtmultimediawidgets-videowidget-example.html

      Saran DeepakS 1 Reply Last reply
      0
      • BharathiB Bharathi

        Start from here :
        http://doc.qt.io/archives/qt-5.5/qtmultimediawidgets-videowidget-example.html

        Saran DeepakS Offline
        Saran DeepakS Offline
        Saran Deepak
        wrote on last edited by
        #3

        @Bharathi Thanks a lot :)

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved