qwindowkit
qwindowkit copied to clipboard
Add QGLWidget into demo mainwindow, drag window to another screen, then the window can never be movable
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.
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!
I had the same problem with QAxWidget.
I assume the problem is the same as #32
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.
有空试一下最新的,记得设以下 WA_DontCreateNativeAncestors 属性