mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 21:32:05 +08:00
首页链接调用浏览器打开 Log: 使用自定义 WebEngineView 和 WebEnginePage 替代 QWebEngineView,重写 createWindow 方法,当页面存在新建窗口或标签页动作时调用浏览器打开网址;修改 Widget UI 布局,在 page1 添加 QVBoxLayout,保证 WebEngineView 自动撑满布局,去除 webFoot 填充控件;更新翻译文件,添加“请勿频繁搜索”翻译文案,去除残留翻译
15 lines
229 B
C++
15 lines
229 B
C++
#ifndef WEBENGINEVIEW_H
|
|
#define WEBENGINEVIEW_H
|
|
|
|
#include <QWebEngineView>
|
|
|
|
class WebEngineView : public QWebEngineView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WebEngineView(QWidget *parent = nullptr);
|
|
};
|
|
|
|
#endif // WEBENGINEVIEW_H
|