[PyQt] QHttpMultiPart impossible to use

Doogster thedoogster at gmail.com
Wed Jun 20 02:10:31 BST 2012


How does one use PyQt's QHttpMultiPart and QHttpPart classes?

On both Arch Linux (PyQt 4.9) and Windows (4.8.1, I believe), the
attached code sample segfaults the Python interpreter.

While Qt's QNetworkAccessManager::post() method is overloaded to take
a pointer to a QHttpMultiPart, PyQt's QNetworkAccessManager.post()
method only has overloads to take either a QByteArray or a QIODevice.
Therefore, it does not appear to be possible to use a PyQt
QHttpMultiPart instance the way it was intended to be used.

Finally, the current PyQt Class Reference does not mention the
QHttpMultiPart and QHttpPart classes.

What's going on? Is this a bug in PyQt?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.py
Type: application/octet-stream
Size: 377 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120619/8fc0aa91/attachment.obj>


More information about the PyQt mailing list