Answer the question
In order to leave comments, you need to log in
How to create a PyQt4.QtCore.QIODevice object at... ?
Tell me how you can create a writable object <PyQt4.QtCore.QIODevice object at...>
exactly QIODevice object, without using QFile, QByteArray, QBuffer ...
Or how you can convert <PyQt4.QtCore.QBuffer object at...>
to <PyQt4.QtCore.QIODevice object at...>
As a result, it should turn <PyQt4.QtCore.QIODevice object at...>
out QNetworkAccessManager has a method
createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice *outgoingData)
. I need to override it in the Python class (inheriting QNetworkAccessManager) and change the data in outgoingData. outgoingData comes in createRequest as ( <PyQt4.QtCore.QIODevice object at 0x0...>
) ReadOnly. You need to create your own QIODevice object, write everything you need to it, but it doesn’t work
Answer the question
In order to leave comments, you need to log in
QIODevice is the base class for QBuffer and this class is abstract (see qt-project.org/doc/qt-4.8/qiodevice.html). Respectively
create a writable objectwill not work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question