Missing QPdfWriter::setPageSize overload

Florian Bruhin me at the-compiler.org
Tue Apr 13 15:24:57 BST 2021


Hey,

According to the docs:

https://doc.qt.io/qt-5/qpdfwriter-members.html
https://doc.qt.io/qt-6/qpdfwriter-members.html

Qt 5 has:

  bool QPdfWriter::setPageSize(const QPageSize &pageSize)
  [obsolete] void QPdfWriter::setPageSize(QPagedPaintDevice::PageSize size) override
  [obsolete] void QPdfWriter::setPageSizeMM(const QSizeF &size) override
  void QPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize size)

While Qt 6 has:

  bool QPagedPaintDevice::setPageSize(const QPageSize &pageSize)

I think PyQt6-6.0.3 is correct (though I didn't try),
but PyQt5-5.15.4/sip/QtGui/qpdfwriter.sip has:

  virtual void setPageSize(QPagedPaintDevice::PageSize size);
  virtual void setPageSizeMM(const QSizeF &size);

i.e. it's missing the overload taking a QPageSize.

Florian

-- 
            me at the-compiler.org | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210413/219756d9/attachment.sig>


More information about the PyQt mailing list