Qt-Nice-Frameless-Window
Qt-Nice-Frameless-Window copied to clipboard
On WindowsOS: CFramelessWindow can not have a child CFramelessWindow
On WindowsOS:
CFramelessWindow* mainWin = new CFramelessWindow(); CFramelessWindow* subWin= new CFramelessWindow(mainWin );
these will break the dragable/resizeable feature of mainWin!
Still don't know how to fix this issue. It is relative to the Qt Event System, and looks like that this issue is unsolveable.
我在我的项目KikoPlay使用了你的Qt-Nice-Frameless-Window 按照我的经验,如果不在构造函数里调用winId()就能避免这个问题 你可以试试将CFramelessWindow构造函数里的setResizeable放到其他地方执行,比如showEvent