[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Missing QPdfWriter::setPageSize overload
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2021-04-15 16:42:34
Message-ID: 2809dee2a0af5ec1c43279afa4b82c50 () riverbankcomputing ! com
[Download RAW message or body]
On 13/04/2021 15:24, Florian Bruhin wrote:
> 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.
Should be fixed in the next snapshot.
Thanks,
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic