summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEirik Aavitsland <[email protected]>2025-06-02 16:51:00 +0200
committerEirik Aavitsland <[email protected]>2025-06-04 09:18:44 +0200
commit472306523a9706ccf363c349edecccaadacfe5b1 (patch)
treee24a38bb2484287c50956fb8bdc34d71d38aaf93
parent5ee2737d916af7e444cae88209d9f0bd4d29e7ea (diff)
Doc: Explicitly advise adding svg, if any, before other files to QIconHEADdev
Adding in the wrong order yields a QIcon that does not provide the expected or desired behavior. Fixes: QTBUG-135652 Pick-to: 6.10 6.9 6.8 Change-Id: Ie1f6e50ee82ddaae8857b076c383ede20ab872df Reviewed-by: Christian Ehrlicher <[email protected]>
-rw-r--r--src/gui/image/qicon.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qicon.cpp b/src/gui/image/qicon.cpp
index 1ba7ddb9d34..1c4b2f205b7 100644
--- a/src/gui/image/qicon.cpp
+++ b/src/gui/image/qicon.cpp
@@ -609,6 +609,9 @@ QFactoryLoader *qt_iconEngineFactoryLoader()
QImageWriter::supportedImageFormats() functions to retrieve a
complete list of the supported file formats.
+ \note If using an SVG image file, make sure to add it before any non-SVG files,
+ so that the correct \l{Icon Engines}{icon engine} gets selected.
+
\section1 Creating an icon from a theme or icon library
The most convenient way to construct an icon is by using the