Details
-
Bug
-
Resolution: Duplicate
-
P0: Blocker
-
6.2.0 Beta4
-
None
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 }