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
6void wrapper() {
8 QImageWriter writer;
9 writer.setFormat("png");
10 if (writer.supportsOption(QImageIOHandler::Description))
11 qDebug() << "Png supports embedded text";
13
14} // wrapper
The QImageWriter class provides a format independent interface for writing images to files or other d...
void setFormat(const QByteArray &format)
Sets the format QImageWriter will use when writing images, to format.
#define qDebug
[1]
Definition qlogging.h:164
void wrapper()