#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
最新推荐文章于 2022-04-19 22:59:34 发布