From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.

Qt3DWindow inside WindowContainer crash when deleted

  • Trying to use Qt3D inside a dialog so embedding the Qt3DWindow in a widget and inserting the widget in a layout of the dialog, but the program crash randomly when closing the dialog, this looks similar to this bug:
    if not what i'm doing wrong?

    DIALOG_TEST::DIALOG_TEST(QWidget *parent):
        ui(new Ui::DIALOG_TEST)
        Qt3DExtras::Qt3DWindow *view=new Qt3DExtras::Qt3DWindow();
            QWidget *container=QWidget::createWindowContainer(view);
                QSize screen_size(view->screen()->size());
        delete ui;

  • Lifetime Qt Champion


    Before speculating, it would be better to test your code against the latest version of the Qt3D module that includes the fixe mentioned in the bug report. Meaning building Qt3D from sources.

  • Thanks, my doubt was that i missed something but if the code above is correct way of using Qt3D in a dialog than i'll just wait for the next release, can practice with the 3d module anyway.

  • @Keyos I meet the same problem,and when i launch my app,the memory usage become 50% even the dialog is not actived,maybe the next release will be better.