Improve Features

Support run in Fullscreen mode;
Suppport "save as" when downloading files.
This commit is contained in:
2020-11-29 02:59:26 +08:00
parent 4a753259d3
commit 4b3cc4276d
9 changed files with 234 additions and 67 deletions

View File

@@ -2,9 +2,7 @@
#define WEBENGINEPAGE_H
#include <QWebEnginePage>
#include <QWebEngineProfile>
#include <QObject>
#include <QProcess>
class WebEnginePage : public QWebEnginePage
{
@@ -14,16 +12,8 @@ public:
protected:
QWebEnginePage *createWindow(WebWindowType type) override;
private:
QWebEngineProfile *m_profile;
QProcess *process;
private slots:
void on_urlChanged(const QUrl url);
void on_download(QWebEngineDownloadItem *item);
void on_downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
void on_downloadFinished();
};