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

DOM元素发生改变,导致窗口渲染异常 #102

Closed
yudaichen opened this issue May 25, 2022 · 4 comments
Closed

DOM元素发生改变,导致窗口渲染异常 #102

yudaichen opened this issue May 25, 2022 · 4 comments

Comments

@yudaichen
Copy link

yudaichen commented May 25, 2022

Describe the bug
在调试QCefViewTest.exe时发现,在QT窗口内,DOM元素发生改变,会使得块级元素挤在一起;
使用CefViewWing.exe打开的页面却没有这个问题。

Screenshots
(异常行为)渲染失败的截图:
image

(期望的正常行为)拖动窗口后,重新绘制后的截图:

image

Desktop (please complete the following information):
-OS: windows10
-QT: 5.12
-cef: cef_binary_101.0.15+gca159c5+chromium-101.0.4951.54_windows64_minimal

@tishion
Copy link
Member

tishion commented May 25, 2022

我这边无法复现你的问题,你用的Qt和Cef版本都不是目前项目使用的,暂时不解决这个问题,你自己查查吧。

@tishion tishion closed this as completed May 25, 2022
@yudaichen
Copy link
Author

可以了,使用项目给的默认cef-95版本是正常的,谢谢

@yudaichen
Copy link
Author

yudaichen commented May 26, 2022

已解决,并不关乎版本问题,cef需要设置默认的背景颜色,与openGL原理一样,在渲染时也同样需要设置“无颜色区域的”填充颜色,否则不会覆盖上一帧有差异的像素点

QCefSetting settings; settings.setBackgroundColor(QColor::fromRgba(qRgba(255, 255, 255, 255)));

@tishion
Copy link
Member

tishion commented May 27, 2022

#104
Fixed

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

No branches or pull requests

2 participants