bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
The QHttpPart class holds a body part to be used inside a HTTP multipart MIME message.
void setBodyDevice(QIODevice *device)
Sets the device to read the content from to device.
void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)
Sets the value of the known header header to be value, overriding any previously set headers.
void setBody(const QByteArray &body)
Sets the body of this MIME part to body.
void setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)
Sets the header headerName to be of value headerValue.
@ ContentDispositionHeader
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data