stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
550 stars 89 forks source link

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

Closed Ikok9c6s closed 1 month ago

Ikok9c6s commented 8 months ago

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 commented 8 months ago

I had the same problem with QAxWidget.

SineStriker commented 8 months ago

I assume the problem is the same as #32

Ikok9c6s commented 8 months ago

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.

SineStriker commented 1 month ago

有空试一下最新的,记得设以下 WA_DontCreateNativeAncestors 属性