[Problem feedback] 求助,QWebEngine加载网页失败
Tofloor
poster avatar
祂、習慣冗默
deepin
2025-01-08 11:49
Author

不知道怎么联系deepin的技术人员,故来此寻求帮助。

qt版本:5.15.2 系统版本:deepin v23 beta2(及之后的版本beta3、当前最新的版本)

情况:无论是使用qt下载器安装还是使用qt5.15.2的源码在deepin v23上面进行编译,使用QWebEngineView加载网页都失败了。

代码:

QWebEngineView view = new QWebEngineView(this);
QWebChannel
channel = new QWebChannel(view->page());
view->page()->setWebChannel(channel);
view->load(QUrl(QStringLiteral("https://www.baidu.com")));

this->setCentralWidget(view);
this->show();

Reply Favorite View the author
All Replies
穿西装的万斯在统亻言
deepin
Backbone of ecological co-construction group
2025-01-08 12:04
#1

你的报错代码发出来看一下

Reply View the author
祂、習慣冗默
deepin
2025-01-08 13:42
#2
穿西装的万斯在统亻言

你的报错代码发出来看一下

1、这个是我用5.15.2的源码编译的,没有报错,但是网页也不显示。

1736314657397.png

2、用qt在线下载器安装的5.15.2,显示了这个

1736314863021.png

Reply View the author
祂、習慣冗默
deepin
2025-01-08 13:54
#3

使用qt的示例simplebrowser、minimal,也加载不出网页。

1736315462804.png

1736315629122.png

Reply View the author
dxy2020
deepin
2025-01-08 14:38
#4

什么架构的,x86的吗?

Reply View the author
dxy2020
deepin
2025-01-08 14:40
#5
It has been deleted!
祂、習慣冗默
deepin
2025-01-08 14:53
#6
dxy2020

什么架构的,x86的吗?

x86架构

Reply View the author
dxy2020
deepin
2025-01-08 15:01
#7

image.png

我这里是正常跑起来了

deepin V23最新的版本吧

image.png

Reply View the author
祂、習慣冗默
deepin
2025-01-08 15:11
#8
dxy2020

image.png

我这里是正常跑起来了

deepin V23最新的版本吧

image.png

你执行了哪些命令去安装qt?

Reply View the author
祂、習慣冗默
deepin
2025-01-08 17:31
#9
dxy2020

image.png

我这里是正常跑起来了

deepin V23最新的版本吧

image.png

用了你截图的代码也是不行的,你的qt是怎么装的?能说下有哪些操作吗?

Reply View the author