Icons don't appear in projects (Windows)
-
@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? -
@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 ?