From 977a7d91ac018b854e4f8760c8915d95cbc6b06d Mon Sep 17 00:00:00 2001 From: DavidPeng Date: Sun, 27 Oct 2024 01:30:32 +0800 Subject: [PATCH] fix: can not display in platform linux Signed-off-by: DavidPeng --- src/QCefView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/QCefView.cpp b/src/QCefView.cpp index 75a0472c..df4d7847 100644 --- a/src/QCefView.cpp +++ b/src/QCefView.cpp @@ -32,7 +32,9 @@ QCefView::QCefView(const QString& url, // OSR mode setBackgroundRole(QPalette::Window); setAttribute(Qt::WA_OpaquePaintEvent); +#ifndef OS_LINUX setAttribute(Qt::WA_PaintOnScreen); +#endif setAttribute(Qt::WA_NoSystemBackground); }