Re: [Interest] QOpenGLWindow inside QSplitter horizontal layout ?

2021-05-21 Thread Konstantin Shegunov
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

Re: [Interest] QOpenGLWindow inside QSplitter horizontal layout ?

2021-05-21 Thread Matthew Woehlke
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

Re: [Interest] QOpenGLWindow inside QSplitter horizontal layout ?

2021-05-21 Thread Benjamin TERRIER
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: > >

Re: [Interest] QOpenGLWindow inside QSplitter horizontal layout ?

2021-05-21 Thread Volker Hilsheimer
> 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

[Interest] QOpenGLWindow inside QSplitter horizontal layout ?

2021-05-20 Thread Nicholas Yue
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) :