Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Project images and icons
Qt 6.11 is out! See what's new in the release blog

Project images and icons

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 564 Views 1 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.
  • F Offline
    F Offline
    FrancisDev97
    wrote last edited by
    #1

    My mobile application icons and images run and renders fine on the iOS simulator but when it comes to android emulator the images and icons doesn't shows though everything gets packed during build time but doesn't render on runtime.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi and welcome to devnet,

      How are you packing your images and icons along your application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FrancisDev97
        wrote last edited by
        #3

        I’m packing my images and icons via a .qrc resource file, but they don't render on Android, though it loads , added a debugger which confirmed the images and icons load. The build log shows qrc_images.cpp.o is compiled, so they’re inside the APK

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

          What is the format of the images? Png or jpeg or something else?

          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
          • F Offline
            F Offline
            FrancisDev97
            wrote last edited by
            #5

            The format is png

            Christian EhrlicherC 1 Reply Last reply
            0
            • F FrancisDev97

              The format is png

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote last edited by
              #6

              @FrancisDev97 said in Project images and icons:

              The format is png

              ok, then my idea is meaningless as the png support is built-in and not a plugin :(
              Can you check if the images are really in the reosurce file during runtime e.g. with QFile::exists()?

              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
              • F Offline
                F Offline
                FrancisDev97
                wrote last edited by
                #7

                I tried with Vulkan and it worked

                1 Reply Last reply
                1
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote last edited by
                  #8

                  Nice you found a solution.
                  What were you using before Vulcan ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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
                  • Unsolved