From 15e12f968a38794410d20cc84fbd5058307e7ce1 Mon Sep 17 00:00:00 2001 From: dengzhongyuan Date: Tue, 20 Jan 2026 17:01:52 +0800 Subject: [PATCH] fix: Update __sw_64__ platform settings for QWebEnginePage - Changed the environment variable for QWebEnginePage to use --js-flags=--jitless instead of disabling the sandbox. - This adjustment aims to improve stability on the __sw_64__ platform. Log: as title bug: https://pms.uniontech.com/bug-view-347387.html --- htmltopdf/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htmltopdf/main.cpp b/htmltopdf/main.cpp index a5ae99bc..80aed257 100644 --- a/htmltopdf/main.cpp +++ b/htmltopdf/main.cpp @@ -29,8 +29,8 @@ int main(int argc, char *argv[]) } // 解决__sw_64__平台使用QWebEnginePage崩溃的问题 #ifdef __sw_64__ - qDebug() << "Running on __sw_64__ platform, disabling sandbox"; - qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox"); + qDebug() << "Running on __sw_64__ platform, --js-flags=--jitless"; + qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--js-flags=--jitless"); #endif //需求文案中不涉及,不做翻译