Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.8.2 Application does not show SVGs when deployed

Qt 6.8.2 Application does not show SVGs when deployed

Scheduled Pinned Locked Moved Solved Installation and Deployment
16 Posts 4 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Ja_n
    wrote on last edited by
    #6

    There is not a single reference to anything Qt in my PATH. In Visual Studio there is just the one i am using. I am using windeployqt using the absolute file path inside the Release folder or directly using the MSVC-Qt-Plugin.
    This is my Release-Folder after running windeployqt on MyApp.exe:

    C:\MyApp\Release>dir /s /b
    C:\MyApp\Release\D3Dcompiler_47.dll
    C:\MyApp\Release\generic
    C:\MyApp\Release\iconengines
    C:\MyApp\Release\imageformats
    C:\MyApp\Release\MyApp.exe
    C:\MyApp\Release\networkinformation
    C:\MyApp\Release\opengl32sw.dll
    C:\MyApp\Release\platforms
    C:\MyApp\Release\Qt6Core.dll
    C:\MyApp\Release\Qt6Gui.dll
    C:\MyApp\Release\Qt6Network.dll
    C:\MyApp\Release\Qt6Svg.dll
    C:\MyApp\Release\Qt6Widgets.dll
    C:\MyApp\Release\styles
    C:\MyApp\Release\tls
    C:\MyApp\Release\translations
    C:\MyApp\Release\vc_redist.x64.exe
    C:\MyApp\Release\generic\qtuiotouchplugin.dll
    C:\MyApp\Release\iconengines\qsvgicon.dll
    C:\MyApp\Release\imageformats\qgif.dll
    C:\MyApp\Release\imageformats\qicns.dll
    C:\MyApp\Release\imageformats\qico.dll
    C:\MyApp\Release\imageformats\qjpeg.dll
    C:\MyApp\Release\imageformats\qsvg.dll
    C:\MyApp\Release\imageformats\qtga.dll
    C:\MyApp\Release\imageformats\qtiff.dll
    C:\MyApp\Release\imageformats\qwbmp.dll
    C:\MyApp\Release\imageformats\qwebp.dll
    C:\MyApp\Release\networkinformation\qnetworklistmanager.dll
    C:\MyApp\Release\platforms\qwindows.dll
    C:\MyApp\Release\styles\qmodernwindowsstyle.dll
    C:\MyApp\Release\tls\qcertonlybackend.dll
    C:\MyApp\Release\tls\qopensslbackend.dll
    C:\MyApp\Release\tls\qschannelbackend.dll
    C:\MyApp\Release\translations\qt_ar.qm
    C:\MyApp\Release\translations\qt_bg.qm
    C:\MyApp\Release\translations\qt_ca.qm
    C:\MyApp\Release\translations\qt_cs.qm
    C:\MyApp\Release\translations\qt_da.qm
    C:\MyApp\Release\translations\qt_de.qm
    C:\MyApp\Release\translations\qt_en.qm
    C:\MyApp\Release\translations\qt_es.qm
    C:\MyApp\Release\translations\qt_fa.qm
    C:\MyApp\Release\translations\qt_fi.qm
    C:\MyApp\Release\translations\qt_fr.qm
    C:\MyApp\Release\translations\qt_gd.qm
    C:\MyApp\Release\translations\qt_he.qm
    C:\MyApp\Release\translations\qt_hr.qm
    C:\MyApp\Release\translations\qt_hu.qm
    C:\MyApp\Release\translations\qt_it.qm
    C:\MyApp\Release\translations\qt_ja.qm
    C:\MyApp\Release\translations\qt_ka.qm
    C:\MyApp\Release\translations\qt_ko.qm
    C:\MyApp\Release\translations\qt_lg.qm
    C:\MyApp\Release\translations\qt_lv.qm
    C:\MyApp\Release\translations\qt_nl.qm
    C:\MyApp\Release\translations\qt_nn.qm
    C:\MyApp\Release\translations\qt_pl.qm
    C:\MyApp\Release\translations\qt_pt_BR.qm
    C:\MyApp\Release\translations\qt_ru.qm
    C:\MyApp\Release\translations\qt_sk.qm
    C:\MyApp\Release\translations\qt_tr.qm
    C:\MyApp\Release\translations\qt_uk.qm
    C:\MyApp\Release\translations\qt_zh_CN.qm
    C:\MyApp\Release\translations\qt_zh_TW.qm
    

    I added my Qt installation to PATH and when i click my Application i get (no SVGs visible):

    00000001	0.00000000	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/platforms" ...	
    00000002	0.00038480	[12596] qt.core.plugin.factoryloader: looking at "qwindows.dll"	
    00000003	0.00130110	[12596] qt.core.plugin.loader: Found metadata in lib C:MyApp/Release/platforms/qwindows.dll, metadata=	
    00000004	0.00130110	[12596] {	
    00000005	0.00130110	[12596]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
    00000006	0.00130110	[12596]     "MetaData": {	
    00000007	0.00130110	[12596]         "Keys": [	
    00000008	0.00130110	[12596]             "windows"	
    00000009	0.00130110	[12596]         ]	
    00000010	0.00130110	[12596]     },	
    00000011	0.00130110	[12596]     "archlevel": 0,	
    00000012	0.00130110	[12596]     "className": "QWindowsIntegrationPlugin",	
    00000013	0.00130110	[12596]     "debug": false,	
    00000014	0.00130110	[12596]     "version": 395264	
    00000015	0.00130110	[12596] }	
    00000016	0.00130110	[12596] 	
    00000017	0.00130110	[12596] 	
    00000018	0.00145340	[12596] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")	
    00000019	0.00478800	[12596] qt.core.library: "C:MyApp/Release/platforms/qwindows.dll" loaded library	
    00000020	0.01351020	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/platformthemes" ...	
    00000021	0.01852130	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/styles" ...	
    00000022	0.01875220	[12596] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyle.dll"	
    00000023	0.01912490	[12596] qt.core.plugin.loader: Found metadata in lib C:MyApp/Release/styles/qmodernwindowsstyle.dll, metadata=	
    00000024	0.01912490	[12596] {	
    00000025	0.01912490	[12596]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
    00000026	0.01912490	[12596]     "MetaData": {	
    00000027	0.01912490	[12596]         "Keys": [	
    00000028	0.01912490	[12596]             "windowsvista",	
    00000029	0.01912490	[12596]             "windows11"	
    00000030	0.01912490	[12596]         ]	
    00000031	0.01912490	[12596]     },	
    00000032	0.01912490	[12596]     "archlevel": 0,	
    00000033	0.01912490	[12596]     "className": "QModernWindowsStylePlugin",	
    00000034	0.01912490	[12596]     "debug": false,	
    00000035	0.01912490	[12596]     "version": 395264	
    00000036	0.01912490	[12596] }	
    00000037	0.01912490	[12596] 	
    00000038	0.01912490	[12596] 	
    00000039	0.01914580	[12596] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista", "windows11")	
    00000040	0.01973210	[12596] qt.core.library: "C:MyApp/Release/styles/qmodernwindowsstyle.dll" loaded library
    00000041	0.16023430	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/accessible" ...
    

    After removing just Qt6Core.dll i get the following output and Svgs are visible:

    00000001	0.00000000	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/iconengines" ...	
    00000002	0.00036150	[22376] qt.core.plugin.factoryloader: looking at "qsvgicon.dll"	
    00000003	0.00078680	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicon.dll, metadata=	
    00000004	0.00078680	[22376] {	
    00000005	0.00078680	[22376]     "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",	
    00000006	0.00078680	[22376]     "MetaData": {	
    00000007	0.00078680	[22376]         "Keys": [	
    00000008	0.00078680	[22376]             "svg",	
    00000009	0.00078680	[22376]             "svgz",	
    00000010	0.00078680	[22376]             "svg.gz"	
    00000011	0.00078680	[22376]         ]	
    00000012	0.00078680	[22376]     },	
    00000013	0.00078680	[22376]     "archlevel": 0,	
    00000014	0.00078680	[22376]     "className": "QSvgIconPlugin",	
    00000015	0.00078680	[22376]     "debug": false,	
    00000016	0.00078680	[22376]     "version": 395264	
    00000017	0.00078680	[22376] }	
    00000018	0.00078680	[22376] 	
    00000019	0.00078680	[22376] 	
    00000020	0.00081450	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz", "svg.gz")	
    00000021	0.00091490	[22376] qt.core.plugin.factoryloader: looking at "qsvgicond.dll"	
    00000022	0.00125860	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicond.dll, metadata=	
    00000023	0.00125860	[22376] {	
    00000024	0.00125860	[22376]     "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",	
    00000025	0.00125860	[22376]     "MetaData": {	
    00000026	0.00125860	[22376]         "Keys": [	
    00000027	0.00125860	[22376]             "svg",	
    00000028	0.00125860	[22376]             "svgz",	
    00000029	0.00125860	[22376]             "svg.gz"	
    00000030	0.00125860	[22376]         ]	
    00000031	0.00125860	[22376]     },	
    00000032	0.00125860	[22376]     "archlevel": 0,	
    00000033	0.00125860	[22376]     "className": "QSvgIconPlugin",	
    00000034	0.00125860	[22376]     "debug": true,	
    00000035	0.00125860	[22376]     "version": 395264	
    00000036	0.00125860	[22376] }	
    00000037	0.00125860	[22376] 	
    00000038	0.00125860	[22376] 	
    00000039	0.00132440	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicond.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000040	0.00132440	[22376]          not a plugin	
    00000041	0.00236260	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicon.dll" loaded library	
    00000042	0.00559850	[22376] qt.svg: Cannot open file ':/icons/svgs/home_d.svg', because: No such file or directory	
    00000043	0.00568700	[22376] qt.svg: Cannot open file ':/icons/svgs/home_d.svg', because: No such file or directory
    00000044	0.01221300	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats" ...	
    00000045	0.01243850	[22376] qt.core.plugin.factoryloader: looking at "qgif.dll"	
    00000046	0.01277140	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgif.dll, metadata=	
    00000047	0.01277140	[22376] {	
    00000048	0.01277140	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
    00000049	0.01277140	[22376]     "MetaData": {	
    00000050	0.01277140	[22376]         "Keys": [	
    00000051	0.01277140	[22376]             "gif"	
    00000052	0.01277140	[22376]         ],	
    00000053	0.01277140	[22376]         "MimeTypes": [	
    00000054	0.01277140	[22376]             "image/gif"	
    00000055	0.01277140	[22376]         ]	
    00000056	0.01277140	[22376]     },	
    00000057	0.01277140	[22376]     "archlevel": 0,	
    00000058	0.01277140	[22376]     "className": "QGifPlugin",	
    00000059	0.01277140	[22376]     "debug": false,	
    00000060	0.01277140	[22376]     "version": 395264	
    00000061	0.01277140	[22376] }	
    00000062	0.01277140	[22376] 	
    00000063	0.01277140	[22376] 	
    00000064	0.01278460	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gif")	
    00000065	0.01288420	[22376] qt.core.plugin.factoryloader: looking at "qgifd.dll"	
    00000066	0.01320970	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgifd.dll, metadata=	
    00000067	0.01320970	[22376] {	
    00000068	0.01320970	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
    00000069	0.01320970	[22376]     "MetaData": {	
    00000070	0.01320970	[22376]         "Keys": [	
    00000071	0.01320970	[22376]             "gif"	
    00000072	0.01320970	[22376]         ],	
    00000073	0.01320970	[22376]         "MimeTypes": [	
    00000074	0.01320970	[22376]             "image/gif"	
    00000075	0.01320970	[22376]         ]	
    00000076	0.01320970	[22376]     },	
    00000077	0.01320970	[22376]     "archlevel": 0,	
    00000078	0.01320970	[22376]     "className": "QGifPlugin",	
    00000079	0.01320970	[22376]     "debug": true,	
    00000080	0.01320970	[22376]     "version": 395264	
    00000081	0.01320970	[22376] }	
    00000082	0.01320970	[22376] 	
    00000083	0.01320970	[22376] 	
    00000084	0.01327890	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgifd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000085	0.01327890	[22376]          not a plugin	
    00000086	0.01331110	[22376] qt.core.plugin.factoryloader: looking at "qicns.dll"	
    00000087	0.01363050	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qicns.dll, metadata=	
    00000088	0.01363050	[22376] {	
    00000089	0.01363050	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
    00000090	0.01363050	[22376]     "MetaData": {	
    00000091	0.01363050	[22376]         "Keys": [	
    00000092	0.01363050	[22376]             "icns"	
    00000093	0.01363050	[22376]         ],	
    00000094	0.01363050	[22376]         "MimeTypes": [	
    00000095	0.01363050	[22376]             "image/x-icns"	
    00000096	0.01363050	[22376]         ]	
    00000097	0.01363050	[22376]     },	
    00000098	0.01363050	[22376]     "archlevel": 0,	
    00000099	0.01363050	[22376]     "className": "QICNSPlugin",	
    00000100	0.01363050	[22376]     "debug": false,	
    00000101	0.01363050	[22376]     "version": 395264	
    00000102	0.01363050	[22376] }	
    00000103	0.01363050	[22376] 	
    00000104	0.01363050	[22376] 	
    
    00000219	0.01663810	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qjpegd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000220	0.01663810	[22376]          not a plugin	
    00000221	0.01673280	[22376] qt.core.plugin.factoryloader: looking at "qsvg.dll"	
    00000222	0.01702520	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvg.dll, metadata=	
    00000223	0.01702520	[22376] {	
    00000224	0.01702520	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
    00000225	0.01702520	[22376]     "MetaData": {	
    00000226	0.01702520	[22376]         "Keys": [	
    00000227	0.01702520	[22376]             "svg",	
    00000228	0.01702520	[22376]             "svgz"	
    00000229	0.01702520	[22376]         ],	
    00000230	0.01702520	[22376]         "MimeTypes": [	
    00000231	0.01702520	[22376]             "image/svg+xml",	
    00000232	0.01702520	[22376]             "image/svg+xml-compressed"	
    00000233	0.01702520	[22376]         ]	
    00000234	0.01702520	[22376]     },	
    00000235	0.01702520	[22376]     "archlevel": 0,	
    00000236	0.01702520	[22376]     "className": "QSvgPlugin",	
    00000237	0.01702520	[22376]     "debug": false,	
    00000238	0.01702520	[22376]     "version": 395264	
    00000239	0.01702520	[22376] }	
    00000240	0.01702520	[22376] 	
    00000241	0.01702520	[22376] 	
    00000242	0.01706840	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz")	
    00000243	0.01713190	[22376] qt.core.plugin.factoryloader: looking at "qsvgd.dll"	
    00000244	0.01745690	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvgd.dll, metadata=	
    00000245	0.01745690	[22376] {	
    00000246	0.01745690	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
    00000247	0.01745690	[22376]     "MetaData": {	
    00000248	0.01745690	[22376]         "Keys": [	
    00000249	0.01745690	[22376]             "svg",	
    00000250	0.01745690	[22376]             "svgz"	
    00000251	0.01745690	[22376]         ],	
    00000252	0.01745690	[22376]         "MimeTypes": [	
    00000253	0.01745690	[22376]             "image/svg+xml",	
    00000254	0.01745690	[22376]             "image/svg+xml-compressed"	
    00000255	0.01745690	[22376]         ]	
    00000256	0.01745690	[22376]     },	
    00000257	0.01745690	[22376]     "archlevel": 0,	
    00000258	0.01745690	[22376]     "className": "QSvgPlugin",	
    00000259	0.01745690	[22376]     "debug": true,	
    00000260	0.01745690	[22376]     "version": 395264	
    00000261	0.01745690	[22376] }	
    00000262	0.01745690	[22376] 	
    00000263	0.01745690	[22376] 	
    00000264	0.01750020	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvgd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000265	0.01750020	[22376]          not a plugin	
    00000266	0.01757380	[22376] qt.core.plugin.factoryloader: looking at "qtga.dll"	
    00000267	0.01789780	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qtga.dll, metadata=	
    00000268	0.01789780	[22376] {	
    00000269	0.01789780	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
    00000270	0.01789780	[22376]     "MetaData": {	
    00000271	0.01789780	[22376]         "Keys": [	
    00000272	0.01789780	[22376]             "tga"	
    00000273	0.01789780	[22376]         ],	
    00000274	0.01789780	[22376]         "MimeTypes": [	
    00000275	0.01789780	[22376]             "image/x-tga"	
    00000276	0.01789780	[22376]         ]	
    00000277	0.01789780	[22376]     },	
    00000278	0.01789780	[22376]     "archlevel": 0,	
    00000279	0.01789780	[22376]     "className": "QTgaPlugin",	
    00000280	0.01789780	[22376]     "debug": false,	
    00000281	0.01789780	[22376]     "version": 395264	
    00000282	0.01789780	[22376] }	
    00000283	0.01789780	[22376] 	
    00000284	0.01789780	[22376] 	
    
    00000434	0.02150560	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgif.dll" loaded library	
    00000435	0.02192430	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qicns.dll" loaded library	
    00000436	0.02233230	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qico.dll" loaded library	
    00000437	0.02279800	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qjpeg.dll" loaded library	
    00000438	0.02319700	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvg.dll" loaded library	
    00000439	0.02362360	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qtga.dll" loaded library	
    00000440	0.02404040	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qtiff.dll" loaded library	
    00000441	0.02441960	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qwbmp.dll" loaded library	
    00000442	0.02483440	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qwebp.dll" loaded library	
    00000443	0.04005290	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/platforms" ...	
    
    00000547	0.04288690	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000548	0.04288690	[22376]          not a plugin	
    00000549	0.04295060	[22376] qt.core.plugin.factoryloader: looking at "qwindows.dll"	
    00000550	0.04326960	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindows.dll, metadata=	
    00000551	0.04326960	[22376] {	
    00000552	0.04326960	[22376]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
    00000553	0.04326960	[22376]     "MetaData": {	
    00000554	0.04326960	[22376]         "Keys": [	
    00000555	0.04326960	[22376]             "windows"	
    00000556	0.04326960	[22376]         ]	
    00000557	0.04326960	[22376]     },	
    00000558	0.04326960	[22376]     "archlevel": 0,	
    00000559	0.04326960	[22376]     "className": "QWindowsIntegrationPlugin",	
    00000560	0.04326960	[22376]     "debug": false,	
    00000561	0.04326960	[22376]     "version": 395264	
    00000562	0.04326960	[22376] }	
    00000563	0.04326960	[22376] 	
    00000564	0.04326960	[22376] 	
    00000565	0.04331650	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")	
    00000566	0.04338000	[22376] qt.core.plugin.factoryloader: looking at "qwindowsd.dll"	
    00000567	0.04370960	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindowsd.dll, metadata=	
    00000568	0.04370960	[22376] {	
    00000569	0.04370960	[22376]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
    00000570	0.04370960	[22376]     "MetaData": {	
    00000571	0.04370960	[22376]         "Keys": [	
    00000572	0.04370960	[22376]             "windows"	
    00000573	0.04370960	[22376]         ]	
    00000574	0.04370960	[22376]     },	
    00000575	0.04370960	[22376]     "archlevel": 0,	
    00000576	0.04370960	[22376]     "className": "QWindowsIntegrationPlugin",	
    00000577	0.04370960	[22376]     "debug": true,	
    00000578	0.04370960	[22376]     "version": 395264	
    00000579	0.04370960	[22376] }	
    00000580	0.04370960	[22376] 	
    00000581	0.04370960	[22376] 	
    00000582	0.04376890	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000583	0.04376890	[22376]          not a plugin	
    00000584	0.04381430	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/platforms" ...	
    00000585	0.04399180	[22376] qt.core.plugin.factoryloader: looking at "qwindows.dll"	
    00000586	0.04431980	[22376] qt.core.plugin.loader: Found metadata in lib C:/MyApp/Release/platforms/qwindows.dll, metadata=	
    00000587	0.04431980	[22376] {	
    00000588	0.04431980	[22376]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
    00000589	0.04431980	[22376]     "MetaData": {	
    00000590	0.04431980	[22376]         "Keys": [	
    00000591	0.04431980	[22376]             "windows"	
    00000592	0.04431980	[22376]         ]	
    00000593	0.04431980	[22376]     },	
    00000594	0.04431980	[22376]     "archlevel": 0,	
    00000595	0.04431980	[22376]     "className": "QWindowsIntegrationPlugin",	
    00000596	0.04431980	[22376]     "debug": false,	
    00000597	0.04431980	[22376]     "version": 395264	
    00000598	0.04431980	[22376] }	
    00000599	0.04431980	[22376] 	
    00000600	0.04431980	[22376] 	
    00000601	0.04436740	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")	
    00000602	0.04793650	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindows.dll" loaded library	
    00000603	0.05694330	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/platformthemes" ...	
    00000604	0.05705440	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/platformthemes" ...	
    00000605	0.06228320	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/styles" ...	
    00000606	0.06254280	[22376] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyle.dll"	
    00000607	0.06293260	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyle.dll, metadata=	
    00000608	0.06293260	[22376] {	
    00000609	0.06293260	[22376]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
    00000610	0.06293260	[22376]     "MetaData": {	
    00000611	0.06293260	[22376]         "Keys": [	
    00000612	0.06293260	[22376]             "windowsvista",	
    00000613	0.06293260	[22376]             "windows11"	
    00000614	0.06293260	[22376]         ]	
    00000615	0.06293260	[22376]     },	
    00000616	0.06293260	[22376]     "archlevel": 0,	
    00000617	0.06293260	[22376]     "className": "QModernWindowsStylePlugin",	
    00000618	0.06293260	[22376]     "debug": false,	
    00000619	0.06293260	[22376]     "version": 395264	
    00000620	0.06293260	[22376] }	
    00000621	0.06293260	[22376] 	
    00000622	0.06293260	[22376] 	
    00000623	0.06300010	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista", "windows11")	
    00000624	0.06307810	[22376] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyled.dll"	
    00000625	0.06342930	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyled.dll, metadata=	
    00000626	0.06342930	[22376] {	
    00000627	0.06342930	[22376]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
    00000628	0.06342930	[22376]     "MetaData": {	
    00000629	0.06342930	[22376]         "Keys": [	
    00000630	0.06342930	[22376]             "windowsvista",	
    00000631	0.06342930	[22376]             "windows11"	
    00000632	0.06342930	[22376]         ]	
    00000633	0.06342930	[22376]     },	
    00000634	0.06342930	[22376]     "archlevel": 0,	
    00000635	0.06342930	[22376]     "className": "QModernWindowsStylePlugin",	
    00000636	0.06342930	[22376]     "debug": true,	
    00000637	0.06342930	[22376]     "version": 395264	
    00000638	0.06342930	[22376] }	
    00000639	0.06342930	[22376] 	
    00000640	0.06342930	[22376] 	
    00000641	0.06345430	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyled.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
    00000642	0.06345430	[22376]          not a plugin	
    00000643	0.06353520	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/styles" ...	
    00000644	0.06371620	[22376] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyle.dll"	
    00000645	0.06407070	[22376] qt.core.plugin.loader: Found metadata in lib C:/MyApp/Release/styles/qmodernwindowsstyle.dll, metadata=	
    00000646	0.06407070	[22376] {	
    00000647	0.06407070	[22376]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
    00000648	0.06407070	[22376]     "MetaData": {	
    00000649	0.06407070	[22376]         "Keys": [	
    00000650	0.06407070	[22376]             "windowsvista",	
    00000651	0.06407070	[22376]             "windows11"	
    00000652	0.06407070	[22376]         ]	
    00000653	0.06407070	[22376]     },	
    00000654	0.06407070	[22376]     "archlevel": 0,	
    00000655	0.06407070	[22376]     "className": "QModernWindowsStylePlugin",	
    00000656	0.06407070	[22376]     "debug": false,	
    00000657	0.06407070	[22376]     "version": 395264	
    00000658	0.06407070	[22376] }	
    00000659	0.06407070	[22376] 	
    00000660	0.06407070	[22376] 	
    00000661	0.06414740	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista", "windows11")	
    00000662	0.06474840	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyle.dll" loaded library	
    00000663	0.53852439	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/accessible" ...	
    00000664	0.53873122	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/accessible" ...
    

    it seems to just not care about svgs.

    The Qt6Core.dll i removed was tagged with 6.8.3 just like every other Qt-dll in my release folder

    Christian EhrlicherC 1 Reply Last reply
    0
    • J Ja_n

      There is not a single reference to anything Qt in my PATH. In Visual Studio there is just the one i am using. I am using windeployqt using the absolute file path inside the Release folder or directly using the MSVC-Qt-Plugin.
      This is my Release-Folder after running windeployqt on MyApp.exe:

      C:\MyApp\Release>dir /s /b
      C:\MyApp\Release\D3Dcompiler_47.dll
      C:\MyApp\Release\generic
      C:\MyApp\Release\iconengines
      C:\MyApp\Release\imageformats
      C:\MyApp\Release\MyApp.exe
      C:\MyApp\Release\networkinformation
      C:\MyApp\Release\opengl32sw.dll
      C:\MyApp\Release\platforms
      C:\MyApp\Release\Qt6Core.dll
      C:\MyApp\Release\Qt6Gui.dll
      C:\MyApp\Release\Qt6Network.dll
      C:\MyApp\Release\Qt6Svg.dll
      C:\MyApp\Release\Qt6Widgets.dll
      C:\MyApp\Release\styles
      C:\MyApp\Release\tls
      C:\MyApp\Release\translations
      C:\MyApp\Release\vc_redist.x64.exe
      C:\MyApp\Release\generic\qtuiotouchplugin.dll
      C:\MyApp\Release\iconengines\qsvgicon.dll
      C:\MyApp\Release\imageformats\qgif.dll
      C:\MyApp\Release\imageformats\qicns.dll
      C:\MyApp\Release\imageformats\qico.dll
      C:\MyApp\Release\imageformats\qjpeg.dll
      C:\MyApp\Release\imageformats\qsvg.dll
      C:\MyApp\Release\imageformats\qtga.dll
      C:\MyApp\Release\imageformats\qtiff.dll
      C:\MyApp\Release\imageformats\qwbmp.dll
      C:\MyApp\Release\imageformats\qwebp.dll
      C:\MyApp\Release\networkinformation\qnetworklistmanager.dll
      C:\MyApp\Release\platforms\qwindows.dll
      C:\MyApp\Release\styles\qmodernwindowsstyle.dll
      C:\MyApp\Release\tls\qcertonlybackend.dll
      C:\MyApp\Release\tls\qopensslbackend.dll
      C:\MyApp\Release\tls\qschannelbackend.dll
      C:\MyApp\Release\translations\qt_ar.qm
      C:\MyApp\Release\translations\qt_bg.qm
      C:\MyApp\Release\translations\qt_ca.qm
      C:\MyApp\Release\translations\qt_cs.qm
      C:\MyApp\Release\translations\qt_da.qm
      C:\MyApp\Release\translations\qt_de.qm
      C:\MyApp\Release\translations\qt_en.qm
      C:\MyApp\Release\translations\qt_es.qm
      C:\MyApp\Release\translations\qt_fa.qm
      C:\MyApp\Release\translations\qt_fi.qm
      C:\MyApp\Release\translations\qt_fr.qm
      C:\MyApp\Release\translations\qt_gd.qm
      C:\MyApp\Release\translations\qt_he.qm
      C:\MyApp\Release\translations\qt_hr.qm
      C:\MyApp\Release\translations\qt_hu.qm
      C:\MyApp\Release\translations\qt_it.qm
      C:\MyApp\Release\translations\qt_ja.qm
      C:\MyApp\Release\translations\qt_ka.qm
      C:\MyApp\Release\translations\qt_ko.qm
      C:\MyApp\Release\translations\qt_lg.qm
      C:\MyApp\Release\translations\qt_lv.qm
      C:\MyApp\Release\translations\qt_nl.qm
      C:\MyApp\Release\translations\qt_nn.qm
      C:\MyApp\Release\translations\qt_pl.qm
      C:\MyApp\Release\translations\qt_pt_BR.qm
      C:\MyApp\Release\translations\qt_ru.qm
      C:\MyApp\Release\translations\qt_sk.qm
      C:\MyApp\Release\translations\qt_tr.qm
      C:\MyApp\Release\translations\qt_uk.qm
      C:\MyApp\Release\translations\qt_zh_CN.qm
      C:\MyApp\Release\translations\qt_zh_TW.qm
      

      I added my Qt installation to PATH and when i click my Application i get (no SVGs visible):

      00000001	0.00000000	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/platforms" ...	
      00000002	0.00038480	[12596] qt.core.plugin.factoryloader: looking at "qwindows.dll"	
      00000003	0.00130110	[12596] qt.core.plugin.loader: Found metadata in lib C:MyApp/Release/platforms/qwindows.dll, metadata=	
      00000004	0.00130110	[12596] {	
      00000005	0.00130110	[12596]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
      00000006	0.00130110	[12596]     "MetaData": {	
      00000007	0.00130110	[12596]         "Keys": [	
      00000008	0.00130110	[12596]             "windows"	
      00000009	0.00130110	[12596]         ]	
      00000010	0.00130110	[12596]     },	
      00000011	0.00130110	[12596]     "archlevel": 0,	
      00000012	0.00130110	[12596]     "className": "QWindowsIntegrationPlugin",	
      00000013	0.00130110	[12596]     "debug": false,	
      00000014	0.00130110	[12596]     "version": 395264	
      00000015	0.00130110	[12596] }	
      00000016	0.00130110	[12596] 	
      00000017	0.00130110	[12596] 	
      00000018	0.00145340	[12596] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")	
      00000019	0.00478800	[12596] qt.core.library: "C:MyApp/Release/platforms/qwindows.dll" loaded library	
      00000020	0.01351020	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/platformthemes" ...	
      00000021	0.01852130	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/styles" ...	
      00000022	0.01875220	[12596] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyle.dll"	
      00000023	0.01912490	[12596] qt.core.plugin.loader: Found metadata in lib C:MyApp/Release/styles/qmodernwindowsstyle.dll, metadata=	
      00000024	0.01912490	[12596] {	
      00000025	0.01912490	[12596]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
      00000026	0.01912490	[12596]     "MetaData": {	
      00000027	0.01912490	[12596]         "Keys": [	
      00000028	0.01912490	[12596]             "windowsvista",	
      00000029	0.01912490	[12596]             "windows11"	
      00000030	0.01912490	[12596]         ]	
      00000031	0.01912490	[12596]     },	
      00000032	0.01912490	[12596]     "archlevel": 0,	
      00000033	0.01912490	[12596]     "className": "QModernWindowsStylePlugin",	
      00000034	0.01912490	[12596]     "debug": false,	
      00000035	0.01912490	[12596]     "version": 395264	
      00000036	0.01912490	[12596] }	
      00000037	0.01912490	[12596] 	
      00000038	0.01912490	[12596] 	
      00000039	0.01914580	[12596] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista", "windows11")	
      00000040	0.01973210	[12596] qt.core.library: "C:MyApp/Release/styles/qmodernwindowsstyle.dll" loaded library
      00000041	0.16023430	[12596] qt.core.plugin.factoryloader: checking directory path "C:MyApp/Release/accessible" ...
      

      After removing just Qt6Core.dll i get the following output and Svgs are visible:

      00000001	0.00000000	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/iconengines" ...	
      00000002	0.00036150	[22376] qt.core.plugin.factoryloader: looking at "qsvgicon.dll"	
      00000003	0.00078680	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicon.dll, metadata=	
      00000004	0.00078680	[22376] {	
      00000005	0.00078680	[22376]     "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",	
      00000006	0.00078680	[22376]     "MetaData": {	
      00000007	0.00078680	[22376]         "Keys": [	
      00000008	0.00078680	[22376]             "svg",	
      00000009	0.00078680	[22376]             "svgz",	
      00000010	0.00078680	[22376]             "svg.gz"	
      00000011	0.00078680	[22376]         ]	
      00000012	0.00078680	[22376]     },	
      00000013	0.00078680	[22376]     "archlevel": 0,	
      00000014	0.00078680	[22376]     "className": "QSvgIconPlugin",	
      00000015	0.00078680	[22376]     "debug": false,	
      00000016	0.00078680	[22376]     "version": 395264	
      00000017	0.00078680	[22376] }	
      00000018	0.00078680	[22376] 	
      00000019	0.00078680	[22376] 	
      00000020	0.00081450	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz", "svg.gz")	
      00000021	0.00091490	[22376] qt.core.plugin.factoryloader: looking at "qsvgicond.dll"	
      00000022	0.00125860	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicond.dll, metadata=	
      00000023	0.00125860	[22376] {	
      00000024	0.00125860	[22376]     "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",	
      00000025	0.00125860	[22376]     "MetaData": {	
      00000026	0.00125860	[22376]         "Keys": [	
      00000027	0.00125860	[22376]             "svg",	
      00000028	0.00125860	[22376]             "svgz",	
      00000029	0.00125860	[22376]             "svg.gz"	
      00000030	0.00125860	[22376]         ]	
      00000031	0.00125860	[22376]     },	
      00000032	0.00125860	[22376]     "archlevel": 0,	
      00000033	0.00125860	[22376]     "className": "QSvgIconPlugin",	
      00000034	0.00125860	[22376]     "debug": true,	
      00000035	0.00125860	[22376]     "version": 395264	
      00000036	0.00125860	[22376] }	
      00000037	0.00125860	[22376] 	
      00000038	0.00125860	[22376] 	
      00000039	0.00132440	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicond.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000040	0.00132440	[22376]          not a plugin	
      00000041	0.00236260	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/iconengines/qsvgicon.dll" loaded library	
      00000042	0.00559850	[22376] qt.svg: Cannot open file ':/icons/svgs/home_d.svg', because: No such file or directory	
      00000043	0.00568700	[22376] qt.svg: Cannot open file ':/icons/svgs/home_d.svg', because: No such file or directory
      00000044	0.01221300	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats" ...	
      00000045	0.01243850	[22376] qt.core.plugin.factoryloader: looking at "qgif.dll"	
      00000046	0.01277140	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgif.dll, metadata=	
      00000047	0.01277140	[22376] {	
      00000048	0.01277140	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
      00000049	0.01277140	[22376]     "MetaData": {	
      00000050	0.01277140	[22376]         "Keys": [	
      00000051	0.01277140	[22376]             "gif"	
      00000052	0.01277140	[22376]         ],	
      00000053	0.01277140	[22376]         "MimeTypes": [	
      00000054	0.01277140	[22376]             "image/gif"	
      00000055	0.01277140	[22376]         ]	
      00000056	0.01277140	[22376]     },	
      00000057	0.01277140	[22376]     "archlevel": 0,	
      00000058	0.01277140	[22376]     "className": "QGifPlugin",	
      00000059	0.01277140	[22376]     "debug": false,	
      00000060	0.01277140	[22376]     "version": 395264	
      00000061	0.01277140	[22376] }	
      00000062	0.01277140	[22376] 	
      00000063	0.01277140	[22376] 	
      00000064	0.01278460	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gif")	
      00000065	0.01288420	[22376] qt.core.plugin.factoryloader: looking at "qgifd.dll"	
      00000066	0.01320970	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgifd.dll, metadata=	
      00000067	0.01320970	[22376] {	
      00000068	0.01320970	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
      00000069	0.01320970	[22376]     "MetaData": {	
      00000070	0.01320970	[22376]         "Keys": [	
      00000071	0.01320970	[22376]             "gif"	
      00000072	0.01320970	[22376]         ],	
      00000073	0.01320970	[22376]         "MimeTypes": [	
      00000074	0.01320970	[22376]             "image/gif"	
      00000075	0.01320970	[22376]         ]	
      00000076	0.01320970	[22376]     },	
      00000077	0.01320970	[22376]     "archlevel": 0,	
      00000078	0.01320970	[22376]     "className": "QGifPlugin",	
      00000079	0.01320970	[22376]     "debug": true,	
      00000080	0.01320970	[22376]     "version": 395264	
      00000081	0.01320970	[22376] }	
      00000082	0.01320970	[22376] 	
      00000083	0.01320970	[22376] 	
      00000084	0.01327890	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgifd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000085	0.01327890	[22376]          not a plugin	
      00000086	0.01331110	[22376] qt.core.plugin.factoryloader: looking at "qicns.dll"	
      00000087	0.01363050	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qicns.dll, metadata=	
      00000088	0.01363050	[22376] {	
      00000089	0.01363050	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
      00000090	0.01363050	[22376]     "MetaData": {	
      00000091	0.01363050	[22376]         "Keys": [	
      00000092	0.01363050	[22376]             "icns"	
      00000093	0.01363050	[22376]         ],	
      00000094	0.01363050	[22376]         "MimeTypes": [	
      00000095	0.01363050	[22376]             "image/x-icns"	
      00000096	0.01363050	[22376]         ]	
      00000097	0.01363050	[22376]     },	
      00000098	0.01363050	[22376]     "archlevel": 0,	
      00000099	0.01363050	[22376]     "className": "QICNSPlugin",	
      00000100	0.01363050	[22376]     "debug": false,	
      00000101	0.01363050	[22376]     "version": 395264	
      00000102	0.01363050	[22376] }	
      00000103	0.01363050	[22376] 	
      00000104	0.01363050	[22376] 	
      
      00000219	0.01663810	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qjpegd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000220	0.01663810	[22376]          not a plugin	
      00000221	0.01673280	[22376] qt.core.plugin.factoryloader: looking at "qsvg.dll"	
      00000222	0.01702520	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvg.dll, metadata=	
      00000223	0.01702520	[22376] {	
      00000224	0.01702520	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
      00000225	0.01702520	[22376]     "MetaData": {	
      00000226	0.01702520	[22376]         "Keys": [	
      00000227	0.01702520	[22376]             "svg",	
      00000228	0.01702520	[22376]             "svgz"	
      00000229	0.01702520	[22376]         ],	
      00000230	0.01702520	[22376]         "MimeTypes": [	
      00000231	0.01702520	[22376]             "image/svg+xml",	
      00000232	0.01702520	[22376]             "image/svg+xml-compressed"	
      00000233	0.01702520	[22376]         ]	
      00000234	0.01702520	[22376]     },	
      00000235	0.01702520	[22376]     "archlevel": 0,	
      00000236	0.01702520	[22376]     "className": "QSvgPlugin",	
      00000237	0.01702520	[22376]     "debug": false,	
      00000238	0.01702520	[22376]     "version": 395264	
      00000239	0.01702520	[22376] }	
      00000240	0.01702520	[22376] 	
      00000241	0.01702520	[22376] 	
      00000242	0.01706840	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz")	
      00000243	0.01713190	[22376] qt.core.plugin.factoryloader: looking at "qsvgd.dll"	
      00000244	0.01745690	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvgd.dll, metadata=	
      00000245	0.01745690	[22376] {	
      00000246	0.01745690	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
      00000247	0.01745690	[22376]     "MetaData": {	
      00000248	0.01745690	[22376]         "Keys": [	
      00000249	0.01745690	[22376]             "svg",	
      00000250	0.01745690	[22376]             "svgz"	
      00000251	0.01745690	[22376]         ],	
      00000252	0.01745690	[22376]         "MimeTypes": [	
      00000253	0.01745690	[22376]             "image/svg+xml",	
      00000254	0.01745690	[22376]             "image/svg+xml-compressed"	
      00000255	0.01745690	[22376]         ]	
      00000256	0.01745690	[22376]     },	
      00000257	0.01745690	[22376]     "archlevel": 0,	
      00000258	0.01745690	[22376]     "className": "QSvgPlugin",	
      00000259	0.01745690	[22376]     "debug": true,	
      00000260	0.01745690	[22376]     "version": 395264	
      00000261	0.01745690	[22376] }	
      00000262	0.01745690	[22376] 	
      00000263	0.01745690	[22376] 	
      00000264	0.01750020	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvgd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000265	0.01750020	[22376]          not a plugin	
      00000266	0.01757380	[22376] qt.core.plugin.factoryloader: looking at "qtga.dll"	
      00000267	0.01789780	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qtga.dll, metadata=	
      00000268	0.01789780	[22376] {	
      00000269	0.01789780	[22376]     "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",	
      00000270	0.01789780	[22376]     "MetaData": {	
      00000271	0.01789780	[22376]         "Keys": [	
      00000272	0.01789780	[22376]             "tga"	
      00000273	0.01789780	[22376]         ],	
      00000274	0.01789780	[22376]         "MimeTypes": [	
      00000275	0.01789780	[22376]             "image/x-tga"	
      00000276	0.01789780	[22376]         ]	
      00000277	0.01789780	[22376]     },	
      00000278	0.01789780	[22376]     "archlevel": 0,	
      00000279	0.01789780	[22376]     "className": "QTgaPlugin",	
      00000280	0.01789780	[22376]     "debug": false,	
      00000281	0.01789780	[22376]     "version": 395264	
      00000282	0.01789780	[22376] }	
      00000283	0.01789780	[22376] 	
      00000284	0.01789780	[22376] 	
      
      00000434	0.02150560	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qgif.dll" loaded library	
      00000435	0.02192430	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qicns.dll" loaded library	
      00000436	0.02233230	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qico.dll" loaded library	
      00000437	0.02279800	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qjpeg.dll" loaded library	
      00000438	0.02319700	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qsvg.dll" loaded library	
      00000439	0.02362360	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qtga.dll" loaded library	
      00000440	0.02404040	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qtiff.dll" loaded library	
      00000441	0.02441960	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qwbmp.dll" loaded library	
      00000442	0.02483440	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/imageformats/qwebp.dll" loaded library	
      00000443	0.04005290	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/platforms" ...	
      
      00000547	0.04288690	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qoffscreend.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000548	0.04288690	[22376]          not a plugin	
      00000549	0.04295060	[22376] qt.core.plugin.factoryloader: looking at "qwindows.dll"	
      00000550	0.04326960	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindows.dll, metadata=	
      00000551	0.04326960	[22376] {	
      00000552	0.04326960	[22376]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
      00000553	0.04326960	[22376]     "MetaData": {	
      00000554	0.04326960	[22376]         "Keys": [	
      00000555	0.04326960	[22376]             "windows"	
      00000556	0.04326960	[22376]         ]	
      00000557	0.04326960	[22376]     },	
      00000558	0.04326960	[22376]     "archlevel": 0,	
      00000559	0.04326960	[22376]     "className": "QWindowsIntegrationPlugin",	
      00000560	0.04326960	[22376]     "debug": false,	
      00000561	0.04326960	[22376]     "version": 395264	
      00000562	0.04326960	[22376] }	
      00000563	0.04326960	[22376] 	
      00000564	0.04326960	[22376] 	
      00000565	0.04331650	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")	
      00000566	0.04338000	[22376] qt.core.plugin.factoryloader: looking at "qwindowsd.dll"	
      00000567	0.04370960	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindowsd.dll, metadata=	
      00000568	0.04370960	[22376] {	
      00000569	0.04370960	[22376]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
      00000570	0.04370960	[22376]     "MetaData": {	
      00000571	0.04370960	[22376]         "Keys": [	
      00000572	0.04370960	[22376]             "windows"	
      00000573	0.04370960	[22376]         ]	
      00000574	0.04370960	[22376]     },	
      00000575	0.04370960	[22376]     "archlevel": 0,	
      00000576	0.04370960	[22376]     "className": "QWindowsIntegrationPlugin",	
      00000577	0.04370960	[22376]     "debug": true,	
      00000578	0.04370960	[22376]     "version": 395264	
      00000579	0.04370960	[22376] }	
      00000580	0.04370960	[22376] 	
      00000581	0.04370960	[22376] 	
      00000582	0.04376890	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindowsd.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000583	0.04376890	[22376]          not a plugin	
      00000584	0.04381430	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/platforms" ...	
      00000585	0.04399180	[22376] qt.core.plugin.factoryloader: looking at "qwindows.dll"	
      00000586	0.04431980	[22376] qt.core.plugin.loader: Found metadata in lib C:/MyApp/Release/platforms/qwindows.dll, metadata=	
      00000587	0.04431980	[22376] {	
      00000588	0.04431980	[22376]     "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",	
      00000589	0.04431980	[22376]     "MetaData": {	
      00000590	0.04431980	[22376]         "Keys": [	
      00000591	0.04431980	[22376]             "windows"	
      00000592	0.04431980	[22376]         ]	
      00000593	0.04431980	[22376]     },	
      00000594	0.04431980	[22376]     "archlevel": 0,	
      00000595	0.04431980	[22376]     "className": "QWindowsIntegrationPlugin",	
      00000596	0.04431980	[22376]     "debug": false,	
      00000597	0.04431980	[22376]     "version": 395264	
      00000598	0.04431980	[22376] }	
      00000599	0.04431980	[22376] 	
      00000600	0.04431980	[22376] 	
      00000601	0.04436740	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")	
      00000602	0.04793650	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/platforms/qwindows.dll" loaded library	
      00000603	0.05694330	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/platformthemes" ...	
      00000604	0.05705440	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/platformthemes" ...	
      00000605	0.06228320	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/styles" ...	
      00000606	0.06254280	[22376] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyle.dll"	
      00000607	0.06293260	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyle.dll, metadata=	
      00000608	0.06293260	[22376] {	
      00000609	0.06293260	[22376]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
      00000610	0.06293260	[22376]     "MetaData": {	
      00000611	0.06293260	[22376]         "Keys": [	
      00000612	0.06293260	[22376]             "windowsvista",	
      00000613	0.06293260	[22376]             "windows11"	
      00000614	0.06293260	[22376]         ]	
      00000615	0.06293260	[22376]     },	
      00000616	0.06293260	[22376]     "archlevel": 0,	
      00000617	0.06293260	[22376]     "className": "QModernWindowsStylePlugin",	
      00000618	0.06293260	[22376]     "debug": false,	
      00000619	0.06293260	[22376]     "version": 395264	
      00000620	0.06293260	[22376] }	
      00000621	0.06293260	[22376] 	
      00000622	0.06293260	[22376] 	
      00000623	0.06300010	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista", "windows11")	
      00000624	0.06307810	[22376] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyled.dll"	
      00000625	0.06342930	[22376] qt.core.plugin.loader: Found metadata in lib C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyled.dll, metadata=	
      00000626	0.06342930	[22376] {	
      00000627	0.06342930	[22376]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
      00000628	0.06342930	[22376]     "MetaData": {	
      00000629	0.06342930	[22376]         "Keys": [	
      00000630	0.06342930	[22376]             "windowsvista",	
      00000631	0.06342930	[22376]             "windows11"	
      00000632	0.06342930	[22376]         ]	
      00000633	0.06342930	[22376]     },	
      00000634	0.06342930	[22376]     "archlevel": 0,	
      00000635	0.06342930	[22376]     "className": "QModernWindowsStylePlugin",	
      00000636	0.06342930	[22376]     "debug": true,	
      00000637	0.06342930	[22376]     "version": 395264	
      00000638	0.06342930	[22376] }	
      00000639	0.06342930	[22376] 	
      00000640	0.06342930	[22376] 	
      00000641	0.06345430	[22376] qt.core.plugin.factoryloader: "The plugin 'C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyled.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 	
      00000642	0.06345430	[22376]          not a plugin	
      00000643	0.06353520	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/styles" ...	
      00000644	0.06371620	[22376] qt.core.plugin.factoryloader: looking at "qmodernwindowsstyle.dll"	
      00000645	0.06407070	[22376] qt.core.plugin.loader: Found metadata in lib C:/MyApp/Release/styles/qmodernwindowsstyle.dll, metadata=	
      00000646	0.06407070	[22376] {	
      00000647	0.06407070	[22376]     "IID": "org.qt-project.Qt.QStyleFactoryInterface",	
      00000648	0.06407070	[22376]     "MetaData": {	
      00000649	0.06407070	[22376]         "Keys": [	
      00000650	0.06407070	[22376]             "windowsvista",	
      00000651	0.06407070	[22376]             "windows11"	
      00000652	0.06407070	[22376]         ]	
      00000653	0.06407070	[22376]     },	
      00000654	0.06407070	[22376]     "archlevel": 0,	
      00000655	0.06407070	[22376]     "className": "QModernWindowsStylePlugin",	
      00000656	0.06407070	[22376]     "debug": false,	
      00000657	0.06407070	[22376]     "version": 395264	
      00000658	0.06407070	[22376] }	
      00000659	0.06407070	[22376] 	
      00000660	0.06407070	[22376] 	
      00000661	0.06414740	[22376] qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windowsvista", "windows11")	
      00000662	0.06474840	[22376] qt.core.library: "C:/Qt/6.8.3/msvc2022_64/plugins/styles/qmodernwindowsstyle.dll" loaded library	
      00000663	0.53852439	[22376] qt.core.plugin.factoryloader: checking directory path "C:/Qt/6.8.3/msvc2022_64/plugins/accessible" ...	
      00000664	0.53873122	[22376] qt.core.plugin.factoryloader: checking directory path "C:/MyApp/Release/accessible" ...
      

      it seems to just not care about svgs.

      The Qt6Core.dll i removed was tagged with 6.8.3 just like every other Qt-dll in my release folder

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #7

      @Ja_n said in Qt 6.8.2 Application does not show SVGs when deployed:

      I added my Qt installation to PATH and when i click my Application i get (no SVGs visible):

      Why do you add Qt to your PATH? I told you not to do...

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Ja_n
        wrote on last edited by
        #8

        I found my solution (without Qt in PATH):

        This does not work:

        QIcon i(":/SvgTest/help_h.svg");
        
        SvgTest::SvgTest(QWidget *parent) : QWidget(parent)
        {
        	lay = new QVBoxLayout(this);
        	l = new QPushButton("hi",this);
        	lay->addWidget(l);
        	l->setIcon(i);
        }
        
        

        This does work:

        QIcon* i = nullptr;
        
        SvgTest::SvgTest(QWidget *parent) : QWidget(parent)
        {
        	lay = new QVBoxLayout(this);
        	l = new QPushButton("hi",this);
        	lay->addWidget(l);
        	i = new QIcon(":/SvgTest/help_h.svg");
        	l->setIcon(*i);
        }
        

        I guess there is something like QApplication has to be created first?

        JonBJ 1 Reply Last reply
        0
        • J Ja_n

          I found my solution (without Qt in PATH):

          This does not work:

          QIcon i(":/SvgTest/help_h.svg");
          
          SvgTest::SvgTest(QWidget *parent) : QWidget(parent)
          {
          	lay = new QVBoxLayout(this);
          	l = new QPushButton("hi",this);
          	lay->addWidget(l);
          	l->setIcon(i);
          }
          
          

          This does work:

          QIcon* i = nullptr;
          
          SvgTest::SvgTest(QWidget *parent) : QWidget(parent)
          {
          	lay = new QVBoxLayout(this);
          	l = new QPushButton("hi",this);
          	lay->addWidget(l);
          	i = new QIcon(":/SvgTest/help_h.svg");
          	l->setIcon(*i);
          }
          

          I guess there is something like QApplication has to be created first?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #9

          @Ja_n
          Without a QApplication currently instantiated I imagine code cannot resolve :/SvgTest/help_h.svg? In your original case did you check QIcon::isNull() prior to attempting to use it? In general you should not try to create global UI objects (like your QIcon i(...)) in code, these are instantiated before your main() is even entered or a QApplication has been created, it often leads to impenetrable error messages.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Ja_n
            wrote on last edited by
            #10

            I did not check isNull(). It would have been true. But i dont understand why it changed when i deleted Qt6Core.dll.

            JonBJ 1 Reply Last reply
            0
            • J Ja_n

              I did not check isNull(). It would have been true. But i dont understand why it changed when i deleted Qt6Core.dll.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #11

              @Ja_n
              I don't know, but the immediate suspicion is that it uses an external Qt6core.dll which it finds somewhere else and is not the same as the one copied by windeployqt. Search your whole disk for Qt6core*.dll?

              I don't know how QIcon sits in this, but I still would not create an external QIcon(....) prior to QApplication. I don't know whether it tries to to resolve the path/create the icon at construction rather than usage time, but a runtime call to new QIcon(":/SvgTest/help_h.svg") after QApplication instantiation seems much safer.

              1 Reply Last reply
              0
              • J Ja_n has marked this topic as solved on
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by Christian Ehrlicher
                #12

                a new QIcon() is wrong in 99,9% of all cases. No need to create it on the heap (and leak it afterwards). And it's for sure not the solution for your problem. You have a mix of different Qt dlls in your PATH.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                JonBJ 1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Ja_n
                  wrote on last edited by
                  #13

                  I’d prefer not to put all my icons on the heap, but I tested my 'solution' in Windows Sandbox and the behavior is exactly the same. There is no Qt in my PATH. I checked every entry in PATH and none contain any Qt DLLs. The only way Qt gets into my PATH is via Visual Studio. If you search my logs for "dll" there are only C:/Qt/6.8.3/msvc2022_64 and C:/MyApp/Release — that’s it.

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    a new QIcon() is wrong in 99,9% of all cases. No need to create it on the heap (and leak it afterwards). And it's for sure not the solution for your problem. You have a mix of different Qt dlls in your PATH.

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by
                    #14

                    @Christian-Ehrlicher
                    Would you care to comment on how, say, QIcon(":/SvgTest/help_h.svg") behaves if called before a QApplication has been created? The OP's code simply shows this as a global variable, cannot tell whether this is what they really have. Do :-paths really get resolved without a QApplication object??

                    Christian EhrlicherC 1 Reply Last reply
                    0
                    • JonBJ JonB

                      @Christian-Ehrlicher
                      Would you care to comment on how, say, QIcon(":/SvgTest/help_h.svg") behaves if called before a QApplication has been created? The OP's code simply shows this as a global variable, cannot tell whether this is what they really have. Do :-paths really get resolved without a QApplication object??

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #15

                      @JonB said in Qt 6.8.2 Application does not show SVGs when deployed:

                      QIcon(":/SvgTest/help_h.svg") behaves if called before a QApplication has been created?

                      I would say it doesn't work as the resource system is not yet properly set up. But I would have to try it out to be sure.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      JonBJ 1 Reply Last reply
                      1
                      • Christian EhrlicherC Christian Ehrlicher

                        @JonB said in Qt 6.8.2 Application does not show SVGs when deployed:

                        QIcon(":/SvgTest/help_h.svg") behaves if called before a QApplication has been created?

                        I would say it doesn't work as the resource system is not yet properly set up. But I would have to try it out to be sure.

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #16

                        @Christian-Ehrlicher That was my guess too :)

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved