J
J
JustCoder2014-10-29 16:28:56
Python
JustCoder, 2014-10-29 16:28:56

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

1 answer(s)
L
leclecovich, 2014-10-29
@leclecovich

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 object
will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question