On Fri, May 21, 2021 at 11:43 AM Benjamin TERRIER
wrote:
> Regardless of QOpenGLWidget being better suited that QOpenGLWindow,
> shouldn't QWidget::createWindowContainer() work with any window?
>
Yes but typically you go to it when you integrate an external surface, say
one that you get from
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
Le ven. 21 mai 2021 à 09:39, Volker Hilsheimer a
écrit :
>
>
> As the name suggests, QOpenGLWindow is a QWindow, and QWindow’s are
> designed to be top level windows.
>
> To embed an OpenGL rendering surface into a widget-based UI, you should be
> looking at QOpenGLWidget instead:
>
>
> On 21 May 2021, at 06:02, Nicholas Yue wrote:
>
> Hi,
>
> I am learning about QOpenGLWindow
>
> I saw examples which utilizes it via
>
> QWidget::createWindowContainer()
>
> I am wondering if there is a way to house it as a widget inside a layout ?
>
> My current attempt is not
Hi,
I am learning about QOpenGLWindow
I saw examples which utilizes it via
QWidget::createWindowContainer()
I am wondering if there is a way to house it as a widget inside a layout ?
My current attempt is not working.
```
MainWindow::MainWindow(QWidget *parent) :