I create a QDialog and embedded the vsgQt::Window into it.
VSGDialog::VSGDialog{
...
m_window = new vsgQt::Window(m_viewer, windowTraits, (QWindow*)nullptr);
auto widget = QWidget::createWindowContainer(m_window);
QVBoxLayout* layout = new QVBoxLayout;
layout->addWidget(widget);
this->setLayout(layout);
}
then I press a button,it will process dlg.exec().
First time I press the button, it all good.
Second time ,the vsg window become invisible.
When I press the default close button on top right,the application will crush.

Please help!Thanks!
I create a QDialog and embedded the vsgQt::Window into it.
then I press a button,it will process
dlg.exec().First time I press the button, it all good.
Second time ,the vsg window become invisible.
When I press the default close button on top right,the application will crush.