修复多个窗口共用同一个配置文件导致锁定的问题(https://gitee.com/spark-store-project/spark-web-app-runtime/issues/IA759Q)

This commit is contained in:
2024-10-19 22:54:46 +08:00
parent a95e7e1beb
commit d197bd3a04
3 changed files with 16 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ class Widget : public QWidget
Q_OBJECT
public:
explicit Widget(QString szUrl = nullptr, QWidget *parent = nullptr);
explicit Widget(QString szUrl = nullptr, QWidget *parent = nullptr, QString szTitle = nullptr);
~Widget();
QWebEnginePage *getPage();
@@ -46,6 +46,7 @@ private:
QStackedLayout *mainLayout = nullptr;
QString m_szUrl;
QString m_szTitle;
};
#endif // WIDGET_H