Qt-Nice-Frameless-Window icon indicating copy to clipboard operation
Qt-Nice-Frameless-Window copied to clipboard

QGraphicsView and QGLWidget

Open muby opened this issue 7 years ago • 4 comments

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

muby avatar May 31 '18 10:05 muby

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

Bringer-of-Light avatar Jun 09 '18 08:06 Bringer-of-Light

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 ?

muby avatar Mar 24 '21 23:03 muby

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......

Bringer-of-Light avatar Mar 30 '21 14:03 Bringer-of-Light