From 505a2777b57011a82aadeb5cd04535648472548d Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Sat, 16 Nov 2024 16:10:14 +0100 Subject: [PATCH] QImageReader: supportedImageFormats only needs QCoreApplication Looks like this was an oversight from Qt4 times where there was no QCoreApplication. But nowadays the plugin loader only needs a QCoreApplication instead a QApplication. Change-Id: I878ee157968ca0cd45314f955fc732d0f00b11ab Reviewed-by: Thiago Macieira (cherry picked from commit 011081998703569a1dfcd17edcb65b27e1f9a8f9) Reviewed-by: Qt Cherry-pick Bot --- src/gui/image/qimagereader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/image/qimagereader.cpp b/src/gui/image/qimagereader.cpp index 1f85fef3bdc..62fb57a0856 100644 --- a/src/gui/image/qimagereader.cpp +++ b/src/gui/image/qimagereader.cpp @@ -1489,7 +1489,7 @@ QByteArray QImageReader::imageFormat(QIODevice *device) Reading and writing SVG files is supported through the \l{Qt SVG} module. The \l{Qt Image Formats} module provides support for additional image formats. - Note that the QApplication instance must be created before this function is + Note that the QCoreApplication instance must be created before this function is called. \sa setFormat(), QImageWriter::supportedImageFormats(), QImageIOPlugin