Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Icons don't appear in projects (Windows)
Forum Updated to NodeBB v4.3 + New Features

Icons don't appear in projects (Windows)

Scheduled Pinned Locked Moved Solved General and Desktop
48 Posts 8 Posters 13.6k Views 3 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.
  • P Offline
    P Offline
    Platinum Lucario
    wrote on last edited by
    #3

    Where do I find my own resource file?

    mrjjM 1 Reply Last reply
    0
    • P Platinum Lucario

      Where do I find my own resource file?

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #4

      @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/3

      You 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

      1 Reply Last reply
      2
      • P Offline
        P Offline
        Platinum Lucario
        wrote on last edited by
        #5

        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:
        2020-02-04 (1).png

        And I opened up the test project you've made, built it and ran it, and it showed up as this:
        2020-02-04 (2).png

        And this is how it appears to me in the designer tool:
        2020-02-04 (3).png

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #6

          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.

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #7

            .ico files need a separate plugin (qico.dll / qicod.dll) - make sure it's in your imageformats plugin folder.

            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
            • P Offline
              P Offline
              Platinum Lucario
              wrote on last edited by Platinum Lucario
              #8

              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.
              2020-02-04 (4).png

              And as for the imageformats plugin folder, it's there:
              2020-02-04 (5).png

              JKSHJ 1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #9

                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

                alt text

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Platinum Lucario
                  wrote on last edited by
                  #10

                  I can confirm that I have only one kit selected, as seen here:
                  2020-02-04 (6).png

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Hi
                    Could you try to select the mingw kit instead and see if images show then ?
                    I recall something with VS and icons.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      Platinum Lucario
                      wrote on last edited by Platinum Lucario
                      #12

                      Same problem with minGW 64-bit
                      2020-02-04 (7).png

                      2020-02-04 (8).png

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Platinum Lucario
                        wrote on last edited by
                        #13

                        I've also tried running Qt Creator as Administrator, but it made no difference.

                        1 Reply Last reply
                        0
                        • hskoglundH Online
                          hskoglundH Online
                          hskoglund
                          wrote on last edited by
                          #14

                          Hi, just a guess, but try upgrading the graphics driver in your Windows 10 installation.

                          P 1 Reply Last reply
                          1
                          • hskoglundH hskoglund

                            Hi, just a guess, but try upgrading the graphics driver in your Windows 10 installation.

                            P Offline
                            P Offline
                            Platinum Lucario
                            wrote on last edited by
                            #15

                            @hskoglund Still doesn't work, even when updating my NVIDIA graphics driver

                            2020-02-05.png

                            mrjjM 1 Reply Last reply
                            0
                            • P Platinum Lucario

                              @hskoglund Still doesn't work, even when updating my NVIDIA graphics driver

                              2020-02-05.png

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #16

                              @Platinum-Lucario

                              Hi
                              Im out of idea what could be wrong.
                              It does draw the widgets and such, its just images that dont show ?

                              P 1 Reply Last reply
                              0
                              • mrjjM mrjj

                                @Platinum-Lucario

                                Hi
                                Im out of idea what could be wrong.
                                It does draw the widgets and such, its just images that dont show ?

                                P Offline
                                P Offline
                                Platinum Lucario
                                wrote on last edited by
                                #17

                                @mrjj Yeah, same here, I tried reinstalling Qt (all of it, including the entire Qt folder), and I still have the same problem.

                                1 Reply Last reply
                                0
                                • mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #18

                                  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 ?

                                  alt text

                                  and nothing else ?

                                  P 1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    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 ?

                                    alt text

                                    and nothing else ?

                                    P Offline
                                    P Offline
                                    Platinum Lucario
                                    wrote on last edited by
                                    #19

                                    @mrjj I've tried with both installing everything and tried installing only the mingw version, still the same result
                                    6de51649-d19a-4ad3-9ebf-0097dc5e82cd-image.png

                                    2020-02-07 (2).png

                                    c5037e11-056a-48a0-a655-dee3d63cc880-image.png

                                    J.HilkJ mrjjM 2 Replies Last reply
                                    0
                                    • P Platinum Lucario

                                      @mrjj I've tried with both installing everything and tried installing only the mingw version, still the same result
                                      6de51649-d19a-4ad3-9ebf-0097dc5e82cd-image.png

                                      2020-02-07 (2).png

                                      c5037e11-056a-48a0-a655-dee3d63cc880-image.png

                                      J.HilkJ Offline
                                      J.HilkJ Offline
                                      J.Hilk
                                      Moderators
                                      wrote on last edited by
                                      #20

                                      @Platinum-Lucario
                                      can you upload that test project somewhere?


                                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                      Q: What's that?
                                      A: It's blue light.
                                      Q: What does it do?
                                      A: It turns blue.

                                      mrjjM 1 Reply Last reply
                                      0
                                      • J.HilkJ J.Hilk

                                        @Platinum-Lucario
                                        can you upload that test project somewhere?

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #21

                                        @J-Hilk
                                        I think its this one
                                        https://www.dropbox.com/s/msmtzl5zxu6blp6/restest.zip?dl=0

                                        1 Reply Last reply
                                        1
                                        • P Platinum Lucario

                                          @mrjj I've tried with both installing everything and tried installing only the mingw version, still the same result
                                          6de51649-d19a-4ad3-9ebf-0097dc5e82cd-image.png

                                          2020-02-07 (2).png

                                          c5037e11-056a-48a0-a655-dee3d63cc880-image.png

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #22

                                          @Platinum-Lucario
                                          Do you have any special anti virus running that might block rcc.exe silently ?

                                          P 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