当前位置:网站首页>QT notes (XXVIII) using qwebengineview to display web pages
QT notes (XXVIII) using qwebengineview to display web pages
2022-06-27 14:59:00 【I'm classmate Huang】
One .QWebEngineView Introduce
The QWebEngineView class provides a widget that is used to view and edit web documents
QWebEngineView Class provides a widget, Can be used to view and edit web file
Two . Use examples
The development environment of the landlord is Qt5.9.0 win10 msvc2015 32bit
1. Add one widget, And promote it to QWebEngineView
2. Display the core code of the web page
// Load web page
ui->widget_web->load(QUrl("https://www.baidu.com/"));
// Set page zoom , The scope is 0.25-5, Default 1
ui->widget_web->setZoomFactor(1.5);
3. Page fallback Forward and refresh function core code
void Widget::on_pushButton_back_clicked()
{
ui->widget_web->back();
}
void Widget::on_pushButton_forward_clicked()
{
ui->widget_web->forward();
}
void Widget::on_pushButton_reload_clicked()
{
ui->widget_web->reload();
}
4. effect 
3、 ... and . Other instructions
1.Qt WebEngine Core Is based on chromium At the heart of
2.QWebEngineView Can only support msvc compile , I won't support it mingw, Special attention should be paid during development
3.QtWebkit QtWebEngine QAxWidget
QtWebkit: stay Qt5.6 before , Is to use QtWebkit Components , but Qt5.6 in the future , Removed QtWebkit This component
QtWebEngine:Qt5.6 After the MSVC edition , Based on Chromium The browser engine for QtWebEngine
QAxWidget:Qt5.6 After the mingw edition , Because of the removal of QtWebkit,mingw Version cannot be used QtWebEngine, So you can only use QAxWidget Control
边栏推荐
- PCL Library - error reporting solution: cmake and Anaconda conflicts during installation
- 優雅的自定義 ThreadPoolExecutor 線程池
- E-week finance Q1 mobile banking has 650million active users; Layout of financial subsidiaries in emerging fields
- Practice of constructing ten billion relationship knowledge map based on Nebula graph
- Strong, weak, soft and virtual references of ThreadLocal
- 老师能给我说一下固收+产品主要投资于哪些方面?
- 关于 Spartacus 的 sitemap.xml 问题
- Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
- 海量数据!秒级分析!Flink+Doris构建实时数仓方案
- 巧用redis实现点赞功能,它不比mysql香吗?
猜你喜欢

ThreadLocal之强、弱、軟、虛引用

enable_ if
Talk about redis transactions

How to select cross-border e-commerce multi merchant system

Pri3d: a representation learning method for 3D scene perception using inherent attributes of rgb-d data

基于WEB平台的阅读APP设计与实现

Synchronized and lock escalation
Principle Comparison and analysis of mechanical hard disk and SSD solid state disk

基于Vue+Node+MySQL的美食菜谱食材网站设计与实现

基于 Nebula Graph 构建百亿关系知识图谱实践
随机推荐
R language triple becomes matrix matrix becomes triple
Use of abortcontroller
基于WEB平台的阅读APP设计与实现
Talk about redis transactions
我想买固收+产品,但是不了解它主要投资哪些方面,有人知道吗?
ThreadLocal之强、弱、軟、虛引用
Tsinghua & Shangtang & Shanghai AI & CUHK proposed Siamese image modeling, which has both linear probing and intensive prediction performance
How to change a matrix into a triple in R language (i.e. three columns: row, col, value)
élégant pool de threadpoolexecutor personnalisé
Redis持久化
[business security-04] universal user name and universal password experiment
Google tool splits by specified length
Handling methods for NVIDIA deepstream running delay, jamming and crash
Unity3d best practices: folder structure and source control
Use GCC to generate an abstract syntax tree "ast" and dump it to Dot file and visualization
At a time of oversupply of chips, China, the largest importer, continued to reduce imports, and the United States panicked
Leetcode 724. 寻找数组的中心下标(可以,一次过)
Top ten Devops best practices worthy of attention in 2022
R language objects are stored in JSON
海量数据!秒级分析!Flink+Doris构建实时数仓方案