当前位置:网站首页>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 :
边栏推荐
- 【Leetcode】14. Longest Common Prefix
- 畅玩集团冲刺港股:年营收2.89亿 刘辉有53.46%投票权
- Interpretation of key parameters in MOSFET device manual
- 剑指 Offer 27. 二叉树的镜像
- Leetcode1380: lucky numbers in matrix
- <四> H264解码输出yuv文件
- 剑指 Offer 25. 合并两个排序的链表
- 一年頂十年
- Deep learning image data automatic annotation [easy to understand]
- Ap和F107数据来源及处理
猜你喜欢

Amazon cloud technology community builder application window opens

Exploration of mobile application performance tools

Use the API port of the bridge of knowledge and action to provide resources for partners to access

Use of openpose

伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO

Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders

Believe in yourself and finish the JVM interview this time

Linux Installation PostgreSQL + Patroni cluster problem

How openharmony starts FA of remote devices

Digital IC hand tearing code -- voting device
随机推荐
一文看懂:数据指标体系的4大类型
Soul, a social meta universe platform, rushed to Hong Kong stocks: Tencent is a shareholder with an annual revenue of 1.28 billion
LeetCode 4. Find the median (hard) of two positive arrays
IP地址转换地址段
一年頂十年
linux下配置Mysql授权某个用户远程访问,不受ip限制
LeetCode 5. Longest Palindromic Substring
绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
linux安装postgresql + patroni 集群问题
Exploration of mobile application performance tools
Digital IC hand tearing code -- voting device
Seven charts, learn to do valuable business analysis
Learning Weekly - total issue 60 - 25th week of 2022
Cell:清华程功组揭示皮肤菌群的一种气味挥发物促进黄病毒感染宿主吸引蚊虫...
pwm呼吸燈
国内比较好的OJ平台[通俗易懂]
相信自己,这次一把搞定JVM面试
P6774 [noi2020] tears in the era (block)
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
有赞和腾讯云、阿里云一同摘得“中国企业云科技服务商50强”[通俗易懂]