当前位置:网站首页>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 :
边栏推荐
- Fuyuan medicine is listed on the Shanghai Stock Exchange: the market value is 10.5 billion, and Hu Baifan is worth more than 4billion
- OpenHarmony如何启动远程设备的FA
- 【Leetcode】14. Longest Common Prefix
- OpenPose的使用
- R及RStudio下载安装教程(超详细)
- L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
- LSF basic command
- Day 18 of leetcode dynamic planning introduction
- 智能垃圾桶(五)——点亮OLED
- 一文看懂:数据指标体系的4大类型
猜你喜欢

871. 最低加油次数

Exploration of mobile application performance tools

Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!

13、Darknet YOLO3

易语言abcd排序
![john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])](/img/4c/ddf7f8085257d0eb8766dbec251345.png)
john爆破出现Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3])

The macrogenome microbiome knowledge you want is all here (2022.7)
![John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])](/img/4c/ddf7f8085257d0eb8766dbec251345.png)
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])

Does digicert SSL certificate support Chinese domain name application?

MOSFET器件手册关键参数解读
随机推荐
Seal Library - installation and introduction
一年顶十年
深度之眼(二)——矩阵及其基本运算
PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御
Kubernetes three open interfaces first sight
什么是泛型?- 泛型入门篇
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
Vscode setting delete line shortcut [easy to understand]
Understand one article: four types of data index system
jsp 和 servlet 有什么区别?
uboot的作用和功能
畅玩集团冲刺港股:年营收2.89亿 刘辉有53.46%投票权
伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
相信自己,这次一把搞定JVM面试
Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
智能垃圾桶(五)——点亮OLED
OpenHarmony如何启动远程设备的FA
Geoserver: publishing PostGIS data sources
LeetCode 2. Add two numbers
Penetration tool - intranet permission maintenance -cobalt strike