macOS: PyQt6-WebEngine backend (modern Chromium ~122, variant A)
release / gui-build (linux, bash) (push) Successful in 57s
release / gui-build (windows, cmd) (push) Successful in 1m20s
release / gui-build (macos, bash) (push) Successful in 1m57s

PyQt5's QtWebEngine is Chromium 87, too old for aspect-ratio and other
modern CSS. Qt6 WebEngine tracks current Chromium.
This commit is contained in:
2026-09-23 03:51:32 +00:00
parent 9e0ccb13bd
commit aea73ccd36
2 changed files with 8 additions and 8 deletions
+2 -3
View File
@@ -55,9 +55,8 @@ gui = [
"pywebview>=6.2.1; platform_system == 'Windows'", "pywebview>=6.2.1; platform_system == 'Windows'",
"velopack>=1.2", "velopack>=1.2",
"qtpy>=2.4.1; platform_system == 'Darwin'", "qtpy>=2.4.1; platform_system == 'Darwin'",
"PyQt5>=5.15.11; platform_system == 'Darwin'", # macOS Qt backend (bundled modern Chromium); PyQt6-WebEngine pulls PyQt6
# pywebview[qt] no longer pulls this in; the macOS Qt backend needs it "PyQt6-WebEngine>=6.7.0; platform_system == 'Darwin'",
"PyQtWebEngine>=5.15.7; platform_system == 'Darwin'",
"pythonnet>=3.1.0rc0; platform_system == 'Windows' and python_version >= '3.14'", "pythonnet>=3.1.0rc0; platform_system == 'Windows' and python_version >= '3.14'",
"pyinstaller>=6.0", "pyinstaller>=6.0",
] ]
+6 -5
View File
@@ -88,11 +88,12 @@ if sys.platform == "darwin":
# pywebview Qt backend selected dynamically via webview.start(gui="qt") # pywebview Qt backend selected dynamically via webview.start(gui="qt")
"webview.platforms.qt", "webview.platforms.qt",
"qtpy", "qtpy",
"PyQt5", "PyQt6",
"PyQt5.QtCore", "PyQt6.QtCore",
"PyQt5.QtGui", "PyQt6.QtGui",
"PyQt5.QtWidgets", "PyQt6.QtWidgets",
"PyQt5.QtWebEngineWidgets", "PyQt6.QtWebEngineCore",
"PyQt6.QtWebEngineWidgets",
] ]
) )