22 if (!
image.isNull()) {
33 content =
buf.buffer();
39 for (
int i = 0;
i < urls.
size(); ++
i) {
\inmodule QtCore \reentrant
QByteArray & append(char c)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QImageWriter class provides a format independent interface for writing images to files or other d...
bool write(const QImage &image)
Writes the image image to the assigned device or file name.
static QList< QByteArray > supportedImageFormats()
Returns the list of image formats supported by QImageWriter.
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
QVariant colorData() const
Returns a color if the data stored in the object represents a color (MIME type application/x-color); ...
QVariant imageData() const
Returns a QVariant storing a QImage if the object can return an image; otherwise returns a null varia...
bool hasImage() const
Returns true if the object can return an image; otherwise returns false.
QList< QUrl > urls() const
Returns a list of URLs contained within the MIME data object.
QByteArray data(const QString &mimetype) const
Returns the data stored in the object in the format described by the MIME type specified by mimeType.
QString text() const
Returns a plain text (MIME type text/plain) representation of the data.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toUtf8() const &
static QByteArray getByteArray(QMimeData *mimeData, const QString &mimeType)
Combined button and popup list for selecting options.
static bool contains(const QJsonArray &haystack, unsigned needle)
GLenum GLuint GLenum GLsizei const GLchar * buf
QLatin1StringView QLatin1String
QVideoFrameFormat::PixelFormat fmt