Hi,
When embedding Qt3DExtras::Qt3DWindow to QWidget based application, i.e.
use QWidget * container = QWidget::createWindowContainer( view, q ); in
the widget, you have to allocate Qt3DExtras::Qt3DWindow on the heap. Or
application will crash on exit.
So in main() we need something similar to:
int main( int argc, char ** argv )
{
QApplication app( argc, argv );
Qt3DExtras::Qt3DWindow * view = new Qt3DExtras::Qt3DWindow;
MainWindow w( view );
w.show();
return app.exec();
}
view allocated but never deleted and I didn't find any possibility to
clear resources on exit.
What do you guys suggest in this situation? Keep as is or think about it?
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest