Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.7.0
Description
On WSL, screen.grabWindow() returns a NULL pixmap. Here's the failing code in Python:
from PySide6.QtWidgets import QApplication
screen = QApplication().primaryScreen()
print(screen.manufacturer())
print(screen.model())
print(screen.name())
print(screen.geometry())
print(screen.availableGeometry())
print(screen.virtualGeometry())
print(screen.orientation())
print(screen.depth())
print(screen.devicePixelRatio())
print(screen.grabWindow().isNull())
Output:
python bug.py weston rdp rdp-0 PySide6.QtCore.QRect(1680, 0, 1920, 1080) PySide6.QtCore.QRect(1680, 0, 1920, 1080) PySide6.QtCore.QRect(0, 0, 3600, 1080) ScreenOrientation.LandscapeOrientation 32 1.0 True
The same code works fine in Windows:
Philips Consumer Electronics Company 273ELH 273ELH PySide6.QtCore.QRect(0, 0, 1920, 1080) PySide6.QtCore.QRect(0, 0, 1920, 1032) PySide6.QtCore.QRect(-1680, 0, 3600, 1080) ScreenOrientation.LandscapeOrientation 32 1.0 False
Attachments
Issue Links
- duplicates
-
QTBUG-34976 Missing QScreen::grabWindow() support
- Open