Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
supportedformat.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
#include <QtGui>
5
6
void
wrapper
() {
8
QImageWriter
writer;
9
writer.
setFormat
(
"png"
);
10
if
(writer.
supportsOption
(
QImageIOHandler::Description
))
11
qDebug
() <<
"Png supports embedded text"
;
13
14
}
// wrapper
QImageIOHandler::Description
@ Description
Definition
qimageiohandler.h:44
QImageWriter
The QImageWriter class provides a format independent interface for writing images to files or other d...
Definition
qimagewriter.h:21
QImageWriter::supportsOption
bool supportsOption(QImageIOHandler::ImageOption option) const
Definition
qimagewriter.cpp:729
QImageWriter::setFormat
void setFormat(const QByteArray &format)
Sets the format QImageWriter will use when writing images, to format.
Definition
qimagewriter.cpp:334
qDebug
#define qDebug
[1]
Definition
qlogging.h:160
wrapper
void wrapper()
Definition
supportedformat.cpp:6
qtbase
src
gui
doc
snippets
image
supportedformat.cpp
Generated by
1.9.7