1

We have problems with QWebEngineView on Windows 7 if an aero theme is enabled (default). Once the QWebEngineView is being rendered, the whole window is rendered in a wrong scale. When switching to a basic theme everything is being rendered as expected.

Simpe testcase I used:

import sys

from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings

app = QApplication(sys.argv)
web = QWebEngineView()
web.load(QUrl("https://www.qt.io/"))
web.show()

sys.exit(app.exec_())

In Chrome the page looks like: enter image description here

But in the QWebEngineView the whole window is cut and uses the wrong scale:

enter image description here

Even worse: adding a QWebEngineView in a PyQt UI scales the whole UI window this way.

I checked the following environment variables:

AA_Use96Dpi=False
AA_UseHighDpiPixmaps=False
AA_UseDesktopOpenGL=False
AA_UseOpenGLES=False
AA_UseSoftwareOpenGL=False
AA_ShareOpenGLContexts=True
AA_EnableHighDpiScaling=False
AA_DisableHighDpiScaling=False

additionally I tried to set dpiaareness with values from 0-2 in qt.conf without any change.

Any hint / help is welcome.

Thanks

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Heiko Robert
  • 2,488
  • 11
  • 12
  • This is what I get: https://drive.google.com/file/d/1ubhOKxY4PmwFL_c3doLXqEOTXvoo0onx/view?usp=sharing , It would be interesting to indicate the version of PyQt5, QWebEngine has had problems with the drivers in the first versions of Qt 5.9 in Windows and Mac OS, I recommend you report the bug. – eyllanesc May 15 '18 at 18:05
  • Thanks for testing! The effect ocours only in win7 aero theme and in any available / running pyqt5 version (5.10.0, 5.9.2). My versions: PyQt5==5.9.2 Python 3.5.3 – Heiko Robert May 17 '18 at 08:51
  • 1
    created https://bugreports.qt.io/browse/QTBUG-68318 – Heiko Robert May 17 '18 at 11:15
  • I recommend you update your version of PyQt to 5.10.1 – eyllanesc May 17 '18 at 11:17
  • same with pyqt 5.10.1 – Heiko Robert May 17 '18 at 11:24
  • I recommend you check between the reports, that bug seems familiar to me and the solution I remember was to update the video driver, good luck. – eyllanesc May 17 '18 at 11:26
  • Card name: Intel(R) HD Graphics 520 Current Mode: 1600 x 900 (32 bit) (60Hz) Native Mode: 1920 x 1080(p) (60.049Hz) Driver Name: igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10iumd32 Driver Version: 21.20.16.4664 – Heiko Robert May 17 '18 at 12:25

1 Answers1

0

It pointed out that updating to the very last intel video card driver solved the issue (unfortunately this version of the graphics driver is not stable / produces blue screens in other scenarios why we used the previous version so far). Thanks to @eyllanesc for the hint!

My conclusion is to switch to another framework asap as long QT depands on OpenGL (for embedding QtWebEngineView) - which has a very poor support on Windows and depands on the graphics card driver. We couldn't expect changes in near future to this concept in QT. Background can be found here: Is there any way to use QtWebEngine without OpenGL?

Heiko Robert
  • 2,488
  • 11
  • 12