1 Star 0 Fork 142

撸码小分队/DS

forked from Vanishi/DS 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
TaskWebEngineView.h 767 Bytes
Copy Edit Raw Blame History
Vanishi authored 2024-04-09 12:52 +08:00 . v1.9
#ifndef TASKWEBENGINEVIEW_H
#define TASKWEBENGINEVIEW_H
#include <QWebEngineView>
class TaskWebEnginePage;
class TaskWebEngineBridge;
struct MTask;
class TaskWebEngineView : public QWebEngineView
{
Q_OBJECT
public:
explicit TaskWebEngineView(QWidget *parent,MTask *task);
~TaskWebEngineView();
public:
TaskWebEngineBridge *bridge;
int loadProgress;// 加载进度
void injectJavascript(bool inject);
QIcon favIcon() const;// 根据 loadProgress参数得到的一个icon
private:
QVector<TaskWebEnginePage *> mPages;
TaskWebEnginePage* createPage();
protected:
QWebEngineView *createWindow(QWebEnginePage::WebWindowType type);
signals:
public slots:
};
#endif // TASKWEBENGINEVIEW_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/coderanks/DS.git
git@gitee.com:coderanks/DS.git
coderanks
DS
DS
master

Search