[PyQt] toAscii is deprecated

Dmitrijs Ledkovs xnox at ubuntu.com
Mon Apr 8 13:29:57 BST 2013

I am trying to compile pyqt against qt5 which has been build with no
deprecated symbols.
I am also using -no-deprecated when configuring pyqt.
I already had to add extra libraries to be linked in the configure script
to make additional modules build.
But the build still fails later on over QtCore.sip.

In qstring.sip:
221            enc = sipCpp->toAscii();

As far as I can see toAscii has been removed from Qt5 final, thus this
needs to be guarded against with something like
"%If (PyQt_Deprecated_5_0)"

Unfortunately, I don't yet understand sip syntax and cannot make the change

I have just testing that the bug is still present
in: PyQt-x11-gpl-snapshot-4.10.1-a8db83af435d

Can this be fixed please?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130408/08acf353/attachment.html>

More information about the PyQt mailing list