QVTKOpenGLNativeWidget vkt9+qt5 framebuffer errors when using setParent

@Michal_Chlebiej hi,michal,has this issue been resolved? I’ve encountered the same problem. My Qt version is 6.5.2, and VTK version is 9.2.6.Below is my minimal code.

qDebug() << "onPushButton";
QWidget* centerWidget = this->centralWidget();
QVBoxLayout* vLayout = nullptr;
QLayout* layout = centerWidget->layout();
if (layout)
{
    vLayout = qobject_cast<QVBoxLayout*>(layout);
}
else
{
    vLayout = new QVBoxLayout();
    centerWidget->setLayout(vLayout);
}
QWidget* parentwidget1 = new QWidget();
QVTKOpenGLNativeWidget* qvtkWidget = new QVTKOpenGLNativeWidget();
QVBoxLayout* vlayout_sub1 = new QVBoxLayout();

vlayout_sub1->addWidget(qvtkWidget);
parentwidget1->setLayout(vlayout_sub1);
vLayout->addWidget(parentwidget1);
parentwidget1->show();

QWidget* parentwidget2 = new QWidget();

QVBoxLayout* vlayout_sub2 = new QVBoxLayout();

vlayout_sub2->addWidget(qvtkWidget);
parentwidget2->setLayout(vlayout_sub2);

The line parentwidget1->show(); is important, if not, it will not appear the error.

Additionally, I only encountered this issue in debug mode. In release mode, with the same code, there are no errors.