Skip to content

Commit

Permalink
fix: can not display in platform linux
Browse files Browse the repository at this point in the history
Signed-off-by: DavidPeng <[email protected]>
  • Loading branch information
xing9634 authored and L-Super committed Oct 27, 2024
1 parent dc58144 commit 4ca01b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/QCefView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4ca01b2

Please sign in to comment.