Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10下使用QtQuick主窗口外边缘有1px多余边线 #134

Open
mentalfl0w opened this issue Sep 10, 2024 · 7 comments
Open

Windows 10下使用QtQuick主窗口外边缘有1px多余边线 #134

mentalfl0w opened this issue Sep 10, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@mentalfl0w
Copy link
Contributor

Windows 10下打开QtQuick示例主窗口,将系统模式调整为亮色,将窗口主题调整为暗色,如下图所示,很明显:
image
这个边线是bug还是框线呢?

@SineStriker
Copy link
Contributor

https://github.com/stdware/qwindowkit?tab=readme-ov-file#windows-10
Windows 10 有上边框问题,这个在 GDI 与 DirectX 渲染系统可以通过顶部画黑线解决,OpenGL 渲染就没办法了,只能用 QPainter 模拟,但是由于系统边框实际上是透明的,模拟不出透明效果,所以在深色背景就比较明显。

@SineStriker SineStriker added the enhancement New feature or request label Sep 10, 2024
@mentalfl0w
Copy link
Contributor Author

理解,这实际上就是之前README里有提到的问题,Windows 10各种小细节问题很多,Windows 11下很多都得到官方解决了。

@SineStriker
Copy link
Contributor

SineStriker commented Sep 10, 2024

理解,这实际上就是之前README里有提到的问题,Windows 10各种小细节问题很多,Windows 11下很多都得到官方解决了。

这个问题的解决得靠社区力量了(虽然看上去很悲观),但是我对 Windows 了解也不深入,基本也是问会的人或者参考其他项目

@mentalfl0w
Copy link
Contributor Author

确实是😂不过Windows 10的寿命也快到了,等Windows 11普及开之后这个问题也就可有可无

@188080501
Copy link

188080501 commented Sep 14, 2024

同样Quick,OpenGL模式下,顶部1像素白色的边,然后左右下部是1像素黑色的边,Windows 10 系统
Win10淘汰还有点久,请问下这个还有优化计划不

@wangwenx190
Copy link
Collaborator

同样Quick,OpenGL模式下,顶部1像素白色的边,然后左右下部是1像素黑色的边,Windows 10 系统 Win10淘汰还有点久,请问下这个还有优化计划不

这个是Windows内核的问题,跟显卡驱动也有很大关系,不是我们想优化就能优化的。实在没办法。

@wangwenx190
Copy link
Collaborator

OpenGL建议不要保留原生边框,或者干脆用Qt经典的那个无边框。基于WM_NCCALCSIZE的无边框,OpenGL下都会出问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants