Details
Description
PySide2 function: Screen.grabWindow(WId) requires an WId and refuse int.
But WId type is not accessible from PySide2. Furthermore Widget.winId() function returns an int and not a WId. So it is impossible to grab any window from grabWindow.
Simplest source code to reproduce:
-------------------------
from PySide2.QtWidgets import QWidget, QApplication
from PySide2.support.signature import mapping
app = QApplication([])
widget = QWidget()
app.setActiveWindow(widget)
widget.show()
window = QApplication.activeWindow()
screen = QApplication.primaryScreen()
wid = window.winId()
w = screen.grabWindow(wid)
Attachments
For Gerrit Dashboard: PYSIDE-863 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
247192,4 | Cast PyLongs to WId | 5.12 | pyside/pyside-setup | Status: MERGED | +2 | 0 |