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 21.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.
  • 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
                  • mrjjM mrjj

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

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

                    @mrjj The only anti-virus I have, is the built-in Windows Defender, does it actually block rcc.exe silently?

                    mrjjM 1 Reply Last reply
                    0
                    • P Platinum Lucario

                      @mrjj The only anti-virus I have, is the built-in Windows Defender, does it actually block rcc.exe silently?

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

                      @Platinum-Lucario

                      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 ?

                      alt text

                      P 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @Platinum-Lucario

                        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 ?

                        alt text

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

                        @mrjj Here's what appears in the restest debug folder:
                        59f7f1e8-b166-4336-aad1-085350f1624e-image.png

                        mrjjM 1 Reply Last reply
                        0
                        • P Platinum Lucario

                          @mrjj Here's what appears in the restest debug folder:
                          59f7f1e8-b166-4336-aad1-085350f1624e-image.png

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

                          @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 ?

                          P 1 Reply Last reply
                          0
                          • mrjjM mrjj

                            @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 ?

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

                            @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)?

                            946cfe4f-9740-40a4-84d3-297721119f5a-image.png

                            03f4d232-8c1d-4ba6-bfc0-c185c465fbcc-image.png

                            0ae64b1c-a95f-48c5-a823-5410105eb4be-image.png

                            c102e985-04c5-4377-be69-d6ed8783308d-image.png

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

                              I'm still curious as to why the plugins aren't working

                              mrjjM 1 Reply Last reply
                              0
                              • P Platinum Lucario

                                I'm still curious as to why the plugins aren't working

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

                                @Platinum-Lucario

                                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.

                                P 1 Reply Last reply
                                0
                                • mrjjM mrjj

                                  @Platinum-Lucario

                                  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.

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

                                  @mrjj I know I have Visual Studio 2017 Community Edition installed, but surely this wouldn't prevent Qt Creator from loading the plugins, right?

                                  mrjjM 1 Reply Last reply
                                  0
                                  • P Platinum Lucario

                                    @mrjj I know I have Visual Studio 2017 Community Edition installed, but surely this wouldn't prevent Qt Creator from loading the plugins, right?

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

                                    @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.

                                    P 1 Reply Last reply
                                    0
                                    • P Platinum Lucario

                                      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 Offline
                                      JKSHJ Offline
                                      JKSH
                                      Moderators
                                      wrote on last edited by JKSH
                                      #32

                                      @Platinum-Lucario said in Icons don't appear in projects (Windows):

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

                                      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).

                                      1. Check C:\Qt\Tools\QtCreator\bin\plugins\imageformats\ to make sure that qico.dll and qjpeg.dll are there
                                      2. 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?

                                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                      1 Reply Last reply
                                      2
                                      • mrjjM mrjj

                                        @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.

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

                                        @mrjj said in Icons don't appear in projects (Windows):

                                        @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.

                                        And here's the search results:

                                        2634562f-ec06-47d7-91b8-ed7fa90e376a-image.png
                                        3ee58feb-ff44-4628-8a32-efbc37535f9a-image.png

                                        @JKSH said in Icons don't appear in projects (Windows):

                                        @Platinum-Lucario said in Icons don't appear in projects (Windows):

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

                                        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).

                                        1. Check C:\Qt\Tools\QtCreator\bin\plugins\imageformats\ to make sure that qico.dll and qjpeg.dll are there
                                        2. 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?

                                        This is the files listed in the directory you mentioned, anything missing that requires it to work?
                                        2115ba48-8a59-41e9-b84f-f7dd31c558a0-image.png

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

                                          And of course, I ran ListDlls64.exe with the commands -r -v -d qjpeg.dll and this was the result:
                                          b09c1c90-9176-45f4-9b7b-2ea3cbdc09bc-image.png

                                          And I ran ListDlls.exe with the same commands, and this was the result:
                                          bc601d92-6151-4475-8404-fff43082f3bd-image.png

                                          I ran them both as Administrator.

                                          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