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

使用QQuickWidget加载qml混合使用,编译完成后一片黑。 #35

Open superlittlebinbin opened 5 years ago

superlittlebinbin commented 5 years ago

你好,在使用你的代码在MainWindow加入qquickwidget后,编译完成均无法绘制,就算load一个空的qml也一样,可能在渲染或者update有问题?

Bringer-of-Light commented 5 years ago

@superlittlebinbin sorry, never test with qml yet...

tinybug commented 4 years ago

https://github.com/Bringer-of-Light/Qt-Nice-Frameless-Window/blob/3002bf536e09a8fe01bbb03e441dde2d7ff4883a/framelesswindow/framelesswindow.cpp#L109

把这个if注释掉就好了,不知道为啥要减一,不减就不会黑了