Ai
1 Star 2 Fork 142

Qt(开源集合)/DS

forked from Vanishi/DS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RunWebEngineViewManager.h 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
sun-th 提交于 2023-04-16 11:06 +08:00 . 内容可能含有违规信息
#ifndef RUNWEBENGINEVIEWMANAGER_H
#define RUNWEBENGINEVIEWMANAGER_H
#include <QObject>
QT_BEGIN_NAMESPACE;
class QWebEngineProfile;
QT_END_NAMESPACE;
class RunDialog;
class RunHelper;
class RunWebEngineView;
class RunWebEngineViewManager : public QObject{
Q_OBJECT
public:
friend class RunWebEngineView;
explicit RunWebEngineViewManager(RunDialog *runDialog);
// RunWebEngineViewManager() = delete;
~RunWebEngineViewManager();
public:
bool pageIsFinished = false;
RunWebEngineView * getCurrentWebView();
void setCurrentWebView(RunWebEngineView *);
QWebEngineProfile* profile();
private:
RunHelper *mHelper;
QWebEngineProfile *mProfile;
QVector<RunWebEngineView *> mWebViews;// 所有使用的webView
RunWebEngineView *m_reusedWebView = nullptr;// 复用的webview,不放入m_initdWebViews
RunWebEngineView *m_currentWebView = nullptr;// 当前显示的webView
RunWebEngineView * createWebView();
signals:
void webViewNotifyUrlChanged(const QString &url);
void cleanWebViews(RunWebEngineView *webView);
public slots:
void onCleanWebViews(RunWebEngineView *webView);
};
#endif // RUNWEBENGINEVIEWMANAGER_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qt-open-source-collection/DS.git
git@gitee.com:qt-open-source-collection/DS.git
qt-open-source-collection
DS
DS
master

搜索帮助