diff --git a/qmake/generators/win32/winmakefile.cpp b/qmake/generators/win32/winmakefile.cpp index b892b699221..a5d96483a84 100644 --- a/qmake/generators/win32/winmakefile.cpp +++ b/qmake/generators/win32/winmakefile.cpp @@ -366,7 +366,7 @@ void Win32MakefileGenerator::processRcFileVar() ts << Qt::endl; if (!rcIcons.isEmpty()) { for (int i = 0; i < rcIcons.size(); ++i) - ts << QString("IDI_ICON%1\tICON\tDISCARDABLE\t%2").arg(i + 1).arg(cQuoted(rcIcons[i])) << Qt::endl; + ts << QString("IDI_ICON%1\tICON\t%2").arg(i + 1).arg(cQuoted(rcIcons[i])) << Qt::endl; ts << Qt::endl; } if (!manifestFile.isEmpty()) { diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 7a98c01247b..2aa6017a4c2 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -925,7 +925,7 @@ function(qt6_generate_win32_rc_file target) if (target_icons) set(index 1) foreach( icon IN LISTS target_icons) - string(APPEND icons "IDI_ICON${index} ICON DISCARDABLE \"${icon}\"\n") + string(APPEND icons "IDI_ICON${index} ICON \"${icon}\"\n") math(EXPR index "${index} +1") endforeach() endif()