Bringer-of-Light / Qt-Nice-Frameless-Window

Qt Frameless Window for both Windows and OS X, support Aero Snap, drop shadow on Windows, and support Native Style such as round corner, drop shadow on OS X. Based on QMainWindow.
Other
812 stars 202 forks source link

Fix window flags #2

Closed wangwenx190 closed 7 years ago

Bringer-of-Light commented 7 years ago

测试发现,setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint); 其中,windowFlags()、Qt::WindowSystemMenuHint 都不能加,否则会出现奇怪的bug如下

image1

wangwenx190 commented 7 years ago

@Bringer-of-Light 不好意思了,是我测试不周全,虽然在我这边的几个环境里测试没什么问题,但看来还是有问题。

Bringer-of-Light commented 7 years ago

@wangwenx190 这个不是刚开始就出现的。而是鼠标在那个位置,按住并移动一下,就会出现那两个按钮。

wangwenx190 commented 7 years ago

@Bringer-of-Light 看来出现的条件比较巧合和苛刻啊,我测试得比较粗略快速,没有发现这个问题。确实是我的问题。