Skip to content

It will never show at the second time and close the window will crush #51

@lyon9601-cloud

Description

@lyon9601-cloud

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().

Image

First time I press the button, it all good.

Image

Second time ,the vsg window become invisible.

Image

When I press the default close button on top right,the application will crush.

Image Please help!Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions