Details
Description
from PySide2.QtGui import QPageSize from PySide2.QtPrintSupport import QPrinter from PySide2.QtWidgets import QApplication QApplication() printer = QPrinter() pageSize = QPageSize() printer.setPageSize(pageSize)
fails with:
TypeError: 'PySide2.QtPrintSupport.QPrinter.setPageSize' called with wrong argument types:
PySide2.QtPrintSupport.QPrinter.setPageSize(QPageSize)
Supported signatures:
PySide2.QtPrintSupport.QPrinter.setPageSize(PySide2.QtGui.QPagedPaintDevice.PageSize)
I suspect type checker is blocking calling setPageSize from parent class (QPagedPaintDevice).
Attachments
For Gerrit Dashboard: PYSIDE-940 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
253586,4 | Add setPageSize new signature to QPageSize | 5.12 | pyside/pyside-setup | Status: MERGED | +2 | 0 |