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

QVideoWidget crashing application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P0: Blocker
    • 6.2.0 RC
    • 6.2.0 Beta4
    • Multimedia
    • None
    • 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

        Activity

          People

            piotr Piotr Srebrny (Inactive)
            hbatalha Helder Batalha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: