Icons don't appear in projects (Windows)
-
wrote on 3 Feb 2020, 14:52 last edited by
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.
-
-
wrote on 3 Feb 2020, 15:34 last edited by
Where do I find my own resource file?
-
Where do I find my own resource file?
Lifetime Qt Championwrote on 3 Feb 2020, 15:37 last edited by mrjj 2 Mar 2020, 15:40@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 -
wrote on 3 Feb 2020, 15:47 last edited by
-
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.
-
wrote on 3 Feb 2020, 16:13 last edited by Platinum Lucario 2 Mar 2020, 16:26
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.
-
-
wrote on 3 Feb 2020, 16:30 last edited by
-
Hi
Could you try to select the mingw kit instead and see if images show then ?
I recall something with VS and icons. -
wrote on 3 Feb 2020, 16:40 last edited by Platinum Lucario 2 Mar 2020, 17:30
-
wrote on 4 Feb 2020, 10:27 last edited by
I've also tried running Qt Creator as Administrator, but it made no difference.
-
wrote on 4 Feb 2020, 16:56 last edited by
Hi, just a guess, but try upgrading the graphics driver in your Windows 10 installation.
-
Hi, just a guess, but try upgrading the graphics driver in your Windows 10 installation.
wrote on 5 Feb 2020, 04:32 last edited by@hskoglund Still doesn't work, even when updating my NVIDIA graphics driver
-
@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
Im out of idea what could be wrong.
It does draw the widgets and such, its just images that dont show ?wrote on 6 Feb 2020, 23:19 last edited by@mrjj Yeah, same here, I tried reinstalling Qt (all of it, including the entire Qt folder), and I still have the same problem.
-
-
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 ?
wrote on 7 Feb 2020, 11:09 last edited by@mrjj I've tried with both installing everything and tried installing only the mingw version, still the same result
-
@mrjj I've tried with both installing everything and tried installing only the mingw version, still the same result
@Platinum-Lucario
can you upload that test project somewhere?
2/48