qwindowkit icon indicating copy to clipboard operation
qwindowkit copied to clipboard

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

Open Ikok9c6s opened this issue 1 year ago • 3 comments

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!

Ikok9c6s avatar Feb 22 '24 06:02 Ikok9c6s

I had the same problem with QAxWidget.

mitosuzu avatar Feb 22 '24 06:02 mitosuzu

I assume the problem is the same as #32

SineStriker avatar Feb 22 '24 07:02 SineStriker

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.

Ikok9c6s avatar Feb 22 '24 07:02 Ikok9c6s

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

SineStriker avatar Sep 13 '24 19:09 SineStriker