当前位置:网站首页>Qwebengineview crash and alternatives
Qwebengineview crash and alternatives
2022-07-02 17:12:00 【Jingchu idlers】
It is necessary to adopt Qt Show web functions , So I thought QWebEngineView class , however QWebEngineView Sometimes it can run , Sometimes it will collapse , as follows :

but Qt The official example is Qt Install under directory Examples\Qt-X.XX.X\webenginewidgets( among X by Q Version number ) Don't break down , Why your own will collapse , Many people on the Internet also mentioned the problem of crash . stay windows The following methods can be used to solve :
no need QWebEngineView, And Microsoft Microsoft Web Browser Of ocx Control substitution QWebEngineView, Here's the code :
auto webWidget = new QAxWidget;
// Set up ActiveX Control as IEMicrosoft Web Browser
// Set up ActiveX The control of id, The most effective way is to use UUID
// Here {8856F961-340A-11D0-A96B-00C04FD705A2} Namely Microsoft Web Browser The control of UUID
webWidget->setControl(QString::fromUtf8("{8856F961-340A-11D0-A96B-00C04FD705A2}"));
webWidget->setObjectName(QString::fromUtf8("webWidget"));// Set the name of the control
webWidget->setFocusPolicy(Qt::StrongFocus);// Sets how the control receives keyboard focus : Mouse click 、Tab key
webWidget->setProperty("DisplayAlerts", false); // Do not display any warning messages .
webWidget->setProperty("DisplayScrollBars", true); // Show scroll bar
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(webWidget);
setLayout(mainLayout);
// Load Baidu homepage
webWidget->dynamicCall("Navigate(const QString&)", "http://www.baidu.com");
setWindowState(Qt::WindowMaximized);// Maximize explain : The following linked articles cannot solve QWebEngineView Breakdown problem :
边栏推荐
- lsf基础命令
- Tech Talk 活动预告 | 基于Amazon KVS打造智能视觉产品
- 2、 Expansion of mock platform
- Detailed explanation of @accessories annotation of Lombok plug-in
- 深度之眼(三)——矩阵的行列式
- <四> H264解码输出yuv文件
- Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
- 剑指 Offer 27. 二叉树的镜像
- LeetCode 3. Longest substring without duplicate characters
- 宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
猜你喜欢
![[leetcode] 14. Préfixe public le plus long](/img/70/e5be1a7c2e10776a040bfc8d7711a0.png)
[leetcode] 14. Préfixe public le plus long

Penetration tool - intranet permission maintenance -cobalt strike

OpenHarmony如何启动远程设备的FA

The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?

Dgraph: large scale dynamic graph dataset

默认浏览器设置不了怎么办?

13、Darknet YOLO3

体验居家办公完成项目有感 | 社区征文

如何与博格华纳BorgWarner通过EDI传输业务数据?

linux下配置Mysql授权某个用户远程访问,不受ip限制
随机推荐
【Leetcode】13. Roman numeral to integer
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])
数字IC手撕代码--投票表决器
Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!
Usage of sprintf() function in C language
基于多元时间序列对高考预测分析案例
配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)
Understand one article: four types of data index system
Linux Installation PostgreSQL + Patroni cluster problem
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
Exploration and practice of integration of streaming and wholesale in jd.com
Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)
超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业
Ap和F107数据来源及处理
Atcoder beginer contest 169 (B, C, D unique decomposition, e mathematical analysis f (DP))
AP and F107 data sources and processing
IP address translation address segment
上传代码到远程仓库报错error: remote origin already exists.
Fuyuan medicine is listed on the Shanghai Stock Exchange: the market value is 10.5 billion, and Hu Baifan is worth more than 4billion
13、Darknet YOLO3