#ifndef WEBPAGE_H
#define WEBPAGE_H
#include <QWebEnginePage>
class WebPage : public QWebEnginePage
{
Q_OBJECT
public:
WebPage(QWebEngineProfile *profile, QObject *parent = nullptr);
protected:
bool certificateError(const QWebEngineCertificateError &error) override;
private slots:
void handleAuthenticationRequired(const QUrl &requestUrl, QAuthenticator *auth);
void handleProxyAuthenticationRequired(const QUrl &requestUrl, QAuthenticator *auth, const QString &proxyHost);
};
#endif // WEBPAGE_H
webpage.h
QWebEnginePage自定义实现
最新推荐文章于 2021-05-31 02:37:54 发布
857

被折叠的 条评论
为什么被折叠?



