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).