Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96400

QVideoWidget crashing application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 6.2.0 Beta4
    • Fix Version/s: 6.2.0 RC
    • Component/s: Multimedia
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      I just updated Qt to 6.2.0Beta4 and to my painful and frustrating surprise my I can't work on a project anymore because the project uses QVideoWidget.

      I sent an attachment with a minimal working project that demonstrates the issue.

      Code below represent the problem I have in my app. It is was working fine in 6.2.0 beta3.

       

      #include "testwidget.h"
      
      #include <QVideoWidget>
      #include <QStackedWidget>
      #include <QVBoxLayout>
      
      TestWidget::TestWidget(QWidget *parent) : QWidget(parent)
      {
          QVideoWidget* videoWidget1 = new QVideoWidget(this);// crash
          QVideoWidget* videoWidget = new QVideoWidget(this);// doesn't crash because it was added to stackedwidget below I guess
      
          QStackedWidget* stackWidget = new QStackedWidget;
          stackWidget->addWidget(videoWidget);
          stackWidget->setCurrentWidget(videoWidget);
      
          QVBoxLayout *vlayout = new QVBoxLayout;
          vlayout->addWidget(stackWidget);
          setLayout(vlayout); // crash
      }
      

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            piotr Piotr Srebrny
            Reporter:
            hbatalha Helder Batalha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes