Skip to content

Commit

Permalink
修复 QWebEngineView 父级问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyiYo committed Oct 29, 2023
1 parent 3f9be5c commit 01f5a2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qframelesswindow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:license: GPLv3, see LICENSE for more details.
"""

__version__ = "0.3.5"
__version__ = "0.3.6"

import sys

Expand Down
6 changes: 4 additions & 2 deletions qframelesswindow/webengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from PyQt5.QtCore import Qt
from PyQt5.QtWebEngineWidgets import QWebEngineView
from qframelesswindow import AcrylicWindow
from qframelesswindow import AcrylicWindow, FramelessWindow


class FramelessWebEngineView(QWebEngineView):
Expand All @@ -15,4 +15,6 @@ def __init__(self, parent):

super().__init__(parent=parent)
self.setHtml("")
self.window().updateFrameless()

if isinstance(self.window(), FramelessWindow):
self.window().updateFrameless()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="PyQt5-Frameless-Window",
version="0.3.5",
version="0.3.6",
keywords="pyqt frameless",
author="zhiyiYo",
author_email="[email protected]",
Expand Down

0 comments on commit 01f5a2e

Please sign in to comment.