Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if you have a trouble with QWebEngineView #8

Open
mrhaa opened this issue Nov 26, 2021 · 1 comment
Open

if you have a trouble with QWebEngineView #8

mrhaa opened this issue Nov 26, 2021 · 1 comment

Comments

@mrhaa
Copy link

mrhaa commented Nov 26, 2021

long story to short,
enable_shadow of PyWindow set to False

@kanslor
Copy link

kanslor commented Nov 11, 2023

Thank you ! I met the same problem QWebEngineView run slow in PyDracula, your answer works .

Just Change the QWebEngine grphic effect(not use the parent's shadow), and disable it. It performs both PyOneDark and PyDracula

# DROP SHADOW in PyDracula 
self.shadow = QGraphicsDropShadowEffect(self)
self.shadow.setBlurRadius(17)
self.shadow.setXOffset(0)
self.shadow.setYOffset(0)
self.shadow.setColor(QColor(0, 0, 0, 150))
self.ui.bgApp.setGraphicsEffect(self.shadow)

self.ui.webEngineView.setGraphicsEffect(self.shadow)
self.ui.webEngineView.graphicsEffect().setEnabled(False)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants