Icons don't appear in projects (Windows)
-
I've also tried running Qt Creator as Administrator, but it made no difference.
-
@hskoglund Still doesn't work, even when updating my NVIDIA graphics driver
-
Hi
Im out of idea what could be wrong.
It does draw the widgets and such, its just images that dont show ? -
Hi
Its pretty odd.
I tried the porymap on 2 different pc and it just worked so clearly something local
at your pc but the normal suspect gfx driver etc seems not to apply.So when you reinstalled. did you try taking ONLY the mingw version ?
and nothing else ?
-
@Platinum-Lucario
can you upload that test project somewhere? -
@J-Hilk
I think its this one
https://www.dropbox.com/s/msmtzl5zxu6blp6/restest.zip?dl=0 -
@Platinum-Lucario
Do you have any special anti virus running that might block rcc.exe silently ? -
Not seen that happen in winver 1803 or heard about that. only avast and other
non native.When you compile and run restest
are those file generated in the build folder ? -
@Platinum-Lucario
Ok super so rcc runs it seems and the file seems valid/has size.
So it must be related to the image plugin somehow.Have you tried to load a image using a path and see if that shows ?
-
@mrjj Okay, so I tried reselecting the .jpg in the project, and it came up with an error as seen below. But when I selected a .png image, it worked just fine. So I wonder why it's not allowing .ico and .jpg (or even not having them appear in the Choose a Pixmap window)?
-
I'm still curious as to why the plugins aren't working
-
Im also very puzzled about that since its both mingw and visualstudio's version
so i am guessing on its something they both load that makes them fail somehow. -
@Platinum-Lucario said in Icons don't appear in projects (Windows):
@mrjj I know I have Visual Studio 2017 Community Edition installed, but surely this wouldn't prevent Qt Creator from loading the plugins, right?
well the Creator is compiled with vs and its runtime could affect it but
that should cause more global issues than just jpg and ico not working.try to search your installation for qjpeg.dll and see if some app also installed a version.
-
@Platinum-Lucario said in Icons don't appear in projects (Windows):
And as for the imageformats plugin folder, it's there:
This is not the folder you want. This folder contains development plugins for the apps that you build.
Your issue is that Qt Creator can't read the icons. Qt Creator is a Qt-based application too, and it uses its own plugins (not your development plugins).
- Check C:\Qt\Tools\QtCreator\bin\plugins\imageformats\ to make sure that qico.dll and qjpeg.dll are there
- Try to open the resource editor again. When the window is open, use ListDLLs (https://docs.microsoft.com/en-us/sysinternals/downloads/listdlls ) to see which DLLs are loaded by Qt Creator. Do you see qico.dll and qjpeg.dll in the list? Are they loaded from the correct folder?