Icons don't appear in projects (Windows)
-
Hello, I have a problem with any project that I open in Windows using Qt, the icons that appear in the forms are completely invisible and cannot be seen. Even when building the project, the icons cannot are not visible.
I have downloaded a project called porymap from here: https://github.com/huderlem/porymap
The problem is, when I open the project in Qt Creator, and check the forms in the designer tool, the icons don't appear at all, everyone else says that it works, but it doesn't for me. And when I build the project, the icons also don't show up in the app either. Only the main icon for the application appears.
So I don't know what's going on, but I really need some help. I've noticed that the icons in that project show up in GNU/Linux distros in Qt Creator, but not in Windows.
Can someone please tell me what is going on and how to fix this problem?
I'll provide as many screenshots as possible.
-
Hi
Works fine here in Windows
Do you try a quick test with your own resource file ?
To see if its something with the Qt install ? -
Where do I find my own resource file?
-
@Platinum-Lucario
Hi
You just add it to a default Widgets GUI project
like shown here
https://forum.qt.io/topic/111281/diskplaying-a-background-image-in-main-window/3You need one random image in the project folder to add to it.
Then rebuild all and see if that shows up.Alternative. use this test project i just made
https://www.dropbox.com/s/msmtzl5zxu6blp6/restest.zip?dl=0 -
So I tried to reselect the icon resource in the porymap project for the pencil icon that is meant to appear, but upon doing so, this error came up:
And I opened up the test project you've made, built it and ran it, and it showed up as this:
And this is how it appears to me in the designer tool:
-
Hi
it seems you are compiling for android ?
And its not setup correctly which could be the cause of not showing the icons/images.Are you sure you want to compile for android ?
That app you linked is clearly a Desktop app. -
.ico files need a separate plugin (qico.dll / qicod.dll) - make sure it's in your imageformats plugin folder.
-
Not exactly, I'm not building for Android, the kit selected is Desktop Qt 5.12.5 MSVC2017 64bit, not sure why it says in the general messages with this message though:
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK. Could not read qmake configuration file C:/Qt/5.12.5/android_arm64_v8a/mkspecs/android-clang/qmake.conf.
And as for the imageformats plugin folder, it's there:
-
Hi
Ok so my be due to having the android kit installed.You seem to have used the VS kit.
When it show the kit selection, you did only select one kit ?Hmm. it looks like mine
-
I can confirm that I have only one kit selected, as seen here:
-
Hi
Could you try to select the mingw kit instead and see if images show then ?
I recall something with VS and icons. -
Same problem with minGW 64-bit
-
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?