当前位置:网站首页>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 :
边栏推荐
- The computer comes with software to make the background color of the picture transparent (matting white background)
- TCP congestion control details | 2 background
- C语言中sprintf()函数的用法
- 綠竹生物沖刺港股:年期內虧損超5億 泰格醫藥與北京亦莊是股東
- Easy language ABCD sort
- 亚马逊云科技 Community Builder 申请窗口开启
- 易语言abcd排序
- 一文看懂:数据指标体系的4大类型
- 【云原生】简单谈谈海量数据采集组件Flume的理解
- < IV & gt; H264 decode output YUV file
猜你喜欢

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

Seal Library - installation and introduction

对接保时捷及3PL EDI案例

Executive engine module of high performance data warehouse practice based on Impala

Ap和F107数据来源及处理

Amazon cloud technology community builder application window opens

Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...

Day 18 of leetcode dynamic planning introduction

A few lines of code to complete RPC service registration and discovery

小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
随机推荐
Tech talk activity preview | building intelligent visual products based on Amazon kVs
linux安装postgresql + patroni 集群问题
LeetCode 3. Longest substring without duplicate characters
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
【征文活动】亲爱的开发者,RT-Thread社区喊你投稿啦
Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
Soul, a social meta universe platform, rushed to Hong Kong stocks: Tencent is a shareholder with an annual revenue of 1.28 billion
Penetration tool - intranet permission maintenance -cobalt strike
Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!
什么是泛型?- 泛型入门篇
Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)
IP地址转换地址段
Tech Talk 活动预告 | 基于Amazon KVS打造智能视觉产品
Seven charts, learn to do valuable business analysis
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
对接保时捷及3PL EDI案例
一文看懂:数据指标体系的4大类型
System Verilog implements priority arbiter
酒仙网IPO被终止:曾拟募资10亿 红杉与东方富海是股东
R and rstudio download and installation tutorial (super detailed)