[PyQt] PyQt on Sailfish OS

Dmitry Shachnev mitya57 at ubuntu.com
Sat Jan 10 13:54:21 GMT 2015


Hi,

On Mon, 05 Jan 2015 15:03:31 +0100, Dietmar Schwertberger wrote:
> E.g. with sip 4.16.5 or 4.15.5 and PyQt 5.2.1 I get
>
> sipQtWidgetsQGraphicsLayout.cpp: In member function
> 'virtual void sipQGraphicsLayout::getContentsMargins(qreal*, qreal*, qreal*, qreal*) const':
>
> sipQtWidgetsQGraphicsLayout.cpp:241:75: error: cannot convert 'qreal* {aka float*}' to 'double*'
> for argument '5' to 'void sipVH_QtWidgets_116(sip_gilstate_t, sipVirtErrorHandlerFunc,
> sipSimpleWrapper*, PyObject*, double*, double*, double*, double*)'

That is because Sailfish still has qreal == float, but PyQt thinks that qreal == double
when Qt is 5.2 or newer.

Applying the attached patch to PyQt should help (obviously this is not for
upstream PyQt, but only for Sailfish).

> qstorageinfo.sip:34:26: fatal error: qstorageinfo.h: No such file or directory

qstorageinfo.h is a new file in Qt 5.4, not sure why it tries to get built
with Qt 5.2. Maybe some error in version detection?

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qreal.patch
Type: text/x-diff
Size: 388 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150110/90affcb3/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150110/90affcb3/attachment.sig>


More information about the PyQt mailing list