using Qt3D in a QWidget application
-
QGLWidget is deprecate. I use QOpenGLWindow and it works. Make sure to call QOpenGLWindow::create() or it won't work.
Here is a c++ example.
https://github.com/qtproject/qt3d/tree/dev/examples/qt3d/cpp_example