QT 6.3.0- QTWebengine对象是否可以在离线模式下管理显示?

发布于 2025-02-09 18:23:29 字数 317 浏览 1 评论 0原文

我正在开发一个显示WebEngineView的QT应用程序。

缓存工作正常。

我想通过整合离线模式进一步走: 如果没有网络,该应用程序必须根据其缓存显示网页(例如Chrome之类的浏览器的标准过程)。 目前,尽管设置了qwebengineProfileqquickwebengineProfileqwebenginesettings对象,页面显示:

预先感谢您的回答。

QT版本:6.3.0

I am developing a Qt application displaying a WebEngineView.

The cache is working properly.

I would like to go further by integrating an offline mode:
without a network, the application must display the web page based on its cache (like the standard process of a browser like Chrome).
For now, despite setting the QWebEngineProfile, QQuickWebEngineProfile and QWebEngineSettings objects, the page displays: "No internet ... ERR_INTERNET_DISCONNECTED"

Does anyone know or have implemented this feature before?

Thank you in advance for your answers.

Qt version: 6.3.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回心转意 2025-02-16 18:23:29

我认为如果不设置代理或覆盖http/https,您无法做到这一点

I don't think you can do that without setting up a proxy or overriding HTTP/HTTPS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文