[Interest] QOpenGLWindow inside QSplitter horizontal layout ?
Matthew Woehlke
mwoehlke.floss at gmail.com
Fri May 21 15:13:13 CEST 2021
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
More information about the Interest
mailing list