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

Add QGLWidget into demo mainwindow, drag window to another screen, then the window can never be movable #43

Open
Ikok9c6s opened this issue Feb 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Ikok9c6s
Copy link

In my program, I use QuarterWidget (which extends QGLWidget) in Coin3D to draw 3D models.
So I test QGLWidget in QWKExample_MainWindow when it's needed to import QWK.
Replace the ClockWidget with QGLWidget, a display error occurred.
Drag window to another screen, the display error disappears, but the window can never be movable by dragging in TitleBar.
setAttribute(Qt::WA_NativeWindow,false) could fix the problem. But the attribute is necessary for QGLWidget.
image
image
P.S. Can you provide apis to specify whether the window can be resizable by dragging borders and if so, the margin can also be customized (as it's 2px hard-coded now)?
Thanks for reading and hope your replys!

@mitosuzu
Copy link

I had the same problem with QAxWidget.

@SineStriker
Copy link
Contributor

I assume the problem is the same as #32

@Ikok9c6s
Copy link
Author

I assume the problem is the same as #32

Yes, and it's same that no problem when tested in Project FramelessHelper if FramelessHelperWidgetsInitialize is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants