Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGraphicsView and QGLWidget #18

Open
muby opened this issue May 31, 2018 · 4 comments
Open

QGraphicsView and QGLWidget #18

muby opened this issue May 31, 2018 · 4 comments

Comments

@muby
Copy link

muby commented May 31, 2018

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

@Bringer-of-Light
Copy link
Owner

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
Copy link
Author

muby commented Mar 24, 2021

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 ?

@Bringer-of-Light
Copy link
Owner

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

@Jackie365
Copy link

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 ?

same here, setResizable(true) is required after adding opengl widget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants