CefView / QCefView

A Qt Widget encapsulated CEF view based on QWidget
https://cefview.github.io/QCefView/
GNU Lesser General Public License v2.1
521 stars 137 forks source link

[BUG]: QCefViewTest程序NewBrowser白屏 #305

Closed ifpelset closed 11 months ago

ifpelset commented 1 year ago

Describe the bug 【Bug描述】

Ubuntu 18.04下QCefViewTest程序NewBrowser白屏

To Reproduce 【复现步骤】

  1. 运行QCefViewTest
  2. 点击NewBrowser

Expected behavior 【正确的预期行为】

正确渲染出网页

Screenshots 【截图】

cef

Environment 【BUG产生的环境】

Additional context 【更多额外信息】

...

L-Super commented 1 year ago

https://github.com/CefView/QCefView/blob/212b708f91219344d5cde53644d0965cf032a4de/example/QCefViewTest/main.cpp#L29 改为true,因为Linux下NCW还不支持

tishion commented 12 months ago

这个应该是用户的网络问题,github.io的访问是需要梯子的。

ifpelset commented 12 months ago

Firefox应该是可访问的。

L-Super commented 12 months ago

Firefox应该是可访问的。

白屏有两种原因

若排除网络问题,可以尝试更新QCefView,最新提交已支持NCW模式。

L-Super commented 12 months ago

Firefox应该是可访问的。

白屏有两种原因

  • 网络问题无法加载,如Google
  • 采用的NCW模式(旧版本不支持Linux 下NCW)

若排除网络问题,可以尝试更新QCefView,最新提交已支持NCW模式。

我之前用ncw模式,用命令启动的时候要先执行xhost +,然后才能显示,不然都是白屏

6be6affcde85cfd926273545282174cc2229f955 提交之后支持NCW,显示正常