Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Setting an icon for the QML app (the APK file)
Forum Updated to NodeBB v4.3 + New Features

Setting an icon for the QML app (the APK file)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
8 Posts 2 Posters 1.3k 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.
  • Q Offline
    Q Offline
    qcoderpro
    wrote on last edited by
    #1

    Hi all,
    I'm about to set an application icon/image for the APK file of a QML project called QML_4. For that I go to Projects -> Build Android APK on Qt Creator and click on Create Templates there and check the "Copy..." checkbox. This message comes up!
    sasq2w.png
    What's the problem and how to properly set an icon/image for the APK file to be shown when it's installed on an Android device, please?

    J.HilkJ 1 Reply Last reply
    0
    • Q qcoderpro

      Hi all,
      I'm about to set an application icon/image for the APK file of a QML project called QML_4. For that I go to Projects -> Build Android APK on Qt Creator and click on Create Templates there and check the "Copy..." checkbox. This message comes up!
      sasq2w.png
      What's the problem and how to properly set an icon/image for the APK file to be shown when it's installed on an Android device, please?

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

      @qcoderpro what version of QtCreator are you using?

      how to properly set an icon/image for the APK file to be shown when it's installed on an Android device

      via the android manifest, newer versions of QtCreator actually allow you to upload one master icon and will do the size conversions for you, very convenient :
      429145fc-4acf-45fd-8d12-7885083f6612-image.png


      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.

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

        @qcoderpro what version of QtCreator are you using?

        how to properly set an icon/image for the APK file to be shown when it's installed on an Android device

        via the android manifest, newer versions of QtCreator actually allow you to upload one master icon and will do the size conversions for you, very convenient :
        429145fc-4acf-45fd-8d12-7885083f6612-image.png

        Q Offline
        Q Offline
        qcoderpro
        wrote on last edited by
        #3

        @J-Hilk
        My Qt Creator version is 7.0.0 (based on Qt 6.2.3). When I click on the OK button on the screenshot in the previous post, it takes me to the following page and I set an image for that app:

        Capture.PNG
        But when I install the built file (the APK file) on the Android device the image is not shown and the app looks like basic Android Apps! :|

        J.HilkJ 1 Reply Last reply
        0
        • Q qcoderpro

          @J-Hilk
          My Qt Creator version is 7.0.0 (based on Qt 6.2.3). When I click on the OK button on the screenshot in the previous post, it takes me to the following page and I set an image for that app:

          Capture.PNG
          But when I install the built file (the APK file) on the Android device the image is not shown and the app looks like basic Android Apps! :|

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

          @qcoderpro clean your build directory, and completely remove any old installation on your device, don't rely on the overwrite methods of the "deployment"

          also maybe restart your phone (after deleting the old installations) I can't remember if it was android or iOS that cached the app icons and required a device reboot to show the new icons


          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.

          Q 1 Reply Last reply
          1
          • J.HilkJ J.Hilk

            @qcoderpro clean your build directory, and completely remove any old installation on your device, don't rely on the overwrite methods of the "deployment"

            also maybe restart your phone (after deleting the old installations) I can't remember if it was android or iOS that cached the app icons and required a device reboot to show the new icons

            Q Offline
            Q Offline
            qcoderpro
            wrote on last edited by
            #5

            @J-Hilk

            I removed the android folder created by the manifest process on the project's directory and also the folder for Android Release mode. Then uninstalled the app on the Android device (Genymotion virtual Android device). After these all, clicked on Build. The apk file was created although I got an empty (!) error on the Qt Creator! Of course, still no icon is displayed! :(

            df11.PNG

            J.HilkJ 1 Reply Last reply
            0
            • Q qcoderpro

              @J-Hilk

              I removed the android folder created by the manifest process on the project's directory and also the folder for Android Release mode. Then uninstalled the app on the Android device (Genymotion virtual Android device). After these all, clicked on Build. The apk file was created although I got an empty (!) error on the Qt Creator! Of course, still no icon is displayed! :(

              df11.PNG

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

              @qcoderpro mmh, thats unfortunate. When you open/extract the generated apk file, do you see a res folder containing bunch of 'drawable-xxxx' each containing your selected icon ?

              The errors are concerning, I'm personally not using QtCreator 7 (5.0.3 the only one thats "stable" for me using the clang code model), and can't help here further


              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.

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

                @qcoderpro mmh, thats unfortunate. When you open/extract the generated apk file, do you see a res folder containing bunch of 'drawable-xxxx' each containing your selected icon ?

                The errors are concerning, I'm personally not using QtCreator 7 (5.0.3 the only one thats "stable" for me using the clang code model), and can't help here further

                Q Offline
                Q Offline
                qcoderpro
                wrote on last edited by qcoderpro
                #7

                @J-Hilk
                No there's not such a folder there!
                tert.PNG

                Did you find the first error I sent in the first post here trivial? Probably that may cause later issues.

                J.HilkJ 1 Reply Last reply
                0
                • Q qcoderpro

                  @J-Hilk
                  No there's not such a folder there!
                  tert.PNG

                  Did you find the first error I sent in the first post here trivial? Probably that may cause later issues.

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

                  @qcoderpro said in Setting an icon for the QML app (the APK file):

                  Did you find the first error I sent in the first post here trivial? Probably that may cause later issues.

                  like I said, I'm not using Qt7 there might be a bug with that, but I usually also do not check that checkbox, top copy the files.

                  Was never really necessary :D


                  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.

                  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