Replymessage unavailable
you, mean you change the margin, but the final document does not respect the new margins?
Because at least the pageLayout reports the change:
>>> printer = QPrinter()
>>> printer.pageLayout()
<PySide6.QtGui.QPageLayout("A4", Portrait, l:10 r:10 t:10 b:10 pt) at 0x7f3798f20bc0>
>>> printer.setPageMargins(QMarginsF(1, 15, 15, 100))
True
>>> printer.pageLayout()
<PySide6.QtGui.QPageLayout("A4", Portrait, l:1 r:15 t:15 b:100 mm) at 0x7f3798f28dc0>