![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Functions | |
textPart | setHeader (QNetworkRequest::ContentTypeHeader, QVariant("text/plain")) |
textPart | setHeader (QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\"")) |
textPart | setBody ("here goes the body") |
imagePart | setHeader (QNetworkRequest::ContentTypeHeader, QVariant("image/jpeg")) |
imagePart | setHeader (QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"image\"")) |
imagePart | setRawHeader ("Content-ID", "my@content.id") |
file | open (QIODevice::ReadOnly) |
imagePart | setBodyDevice (file) |
Variables | |
Content | Type |
[0] | |
name | |
QHttpPart | imagePart |
[1] | |
QFile * | file = new QFile("image.jpg") |
file open | ( | QIODevice::ReadOnly | ) |
textPart setBody | ( | "here goes the body" | ) |
imagePart setHeader | ( | QNetworkRequest::ContentDispositionHeader | , |
QVariant("form-data; name=\"image\"") | |||
) |
textPart setHeader | ( | QNetworkRequest::ContentDispositionHeader | , |
QVariant("form-data; name=\"text\"") | |||
) |
imagePart setHeader | ( | QNetworkRequest::ContentTypeHeader | , |
QVariant("image/jpeg") | |||
) |
textPart setHeader | ( | QNetworkRequest::ContentTypeHeader | , |
QVariant("text/plain") | |||
) |
imagePart setRawHeader | ( | "Content-ID" | , |
"my@content.id" | |||
) |
Definition at line 23 of file src_network_access_qhttppart.cpp.
QHttpPart imagePart |
Definition at line 6 of file src_network_access_qhttppart.cpp.
Content Type |
[0]
Definition at line 5 of file src_network_access_qhttppart.cpp.