On 21/05/2021 00.02, Nicholas Yue wrote:
I am learning about QOpenGLWindow

I saw examples which utilizes it via

         QWidget::createWindowContainer()

What examples were those? This seems like a really bad technique.

I am wondering if there is a way to house it as a widget inside a layout ?

As already noted, use QOpenGLWidget.

I suppose QOpenGLWindow makes sense if you are implementing something like an immersive game where you will always, always be rending your entire window content as an OpenGL scene. I can't think of any other reason why you'd want to use QOpenGLWindow.

If you are trying to use OpenGL in a portion of a window that is otherwise using widgets (or even just multiple OpenGL views), you almost surely should be using QOpenGLWidget instead.

--
Matthew
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to