Qt WebView WebEngineView 的使用方法
.h
#include <QWebEngineView>
public:
QWebEngineView *webView;
.cpp
webView = new QWebEngineView(ui->centralWidget);
webView->setObjectName(QString::fromUtf8("webView"));
webView->setProperty("url", QVariant(QUrl(QString::fromUtf8("https://note.skiy.net/"))));
ui->verticalLayout->addWidget(webView);