Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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::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:164
wrapper
void wrapper()
Definition
supportedformat.cpp:6
qtbase
src
gui
doc
snippets
image
supportedformat.cpp
Generated by
1.10.0