Bringer-of-Light/Qt-Nice-Frameless-Window

QGraphicsView and QGLWidget

muby opened this issue · 3 comments

muby commented

Hi, I try to use your Nice Frameless Window, but with a QGraphicsView.

Indeed, the content of my MainWindow, is juste a QGraphicsView.

To be able to optimize the performance of my GraphicsView, I use an openGL Viewport with :

ui->graphicsView->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));

When I add this line, then we can't move the MainWindows, and the "Hover" on button didn't work too.

Thanks

Sorry, I'm not familiar with QGraphicsView.
But if you put your core code (and dev environment) here, maybe I can offer some advise.

muby commented

I just forgot this problem, but I just come to it again ... so ... the problem is not the QGraphicsView but the openGl... if you had a widget that inherit from QGlWidget inside the Frameless Window ... it is not possible anymore to move it or resize it ... 🈂️

Any Idea ?

I just forgot this problem, but I just come to it again ... so ... the problem is not the QGraphicsView but the openGl... if you had a widget that inherit from QGlWidget inside the Frameless Window ... it is not possible anymore to move it or resize it ... 🈂️

Any Idea ?

no idea too......