Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    IOS AppIcon in 5.2 Beta 1?

    Mobile and Embedded
    4
    8
    3945
    Loading More Posts
    • 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.
    • S
      syfy323 last edited by

      Hello,

      how do I embed the Apple App Store Icons? I tried many ways including the keys in Info.plist but my apps still have the dev-standard icon.

      I have valid images. Thanks.

      1 Reply Last reply Reply Quote 0
      • S
        syfy323 last edited by

        It's this problem:
        https://bugreports.qt-project.org/browse/QTBUG-34624

        1 Reply Last reply Reply Quote 0
        • Gianluca
          Gianluca last edited by

          I didn't do anything special for adding the app icon and splash screen as required by Apple iOS application:
          Just add to the bundle the following files:
          Icon.png
          Icon-72.png
          Icon@2x.png
          Icon-72@2.png
          Default.png
          Default-72.png
          Default@2x.png
          Default-568h@2x.png

          That's it !!
          You don't need to do any changes to the Info.plist created by qmake

          1 Reply Last reply Reply Quote 0
          • clogwog
            clogwog last edited by

            when you say "add to the bundle" , what did you actually do ?
            did you add them to the .xcodeproj ? or to the .pro file ?

            and if you added them to the .xcodeproj file, won't those details get lost next time you do a qmake ?

            1 Reply Last reply Reply Quote 0
            • Gianluca
              Gianluca last edited by

              "Add to the bundle" means (for me concerning Qt) adding one or more lines like this in the .pro file:
              @
              BUNDLE_DATA.files = $$PWD/iOS_BundleData/Icon.png
              $$PWD/iOS_BundleData/Icon@2x.png
              $$PWD/iOS_BundleData/Icon-72.png
              $$PWD/iOS_BundleData/Icon-72@2x.png
              $$PWD/iOS_BundleData/Default.png
              $$PWD/iOS_BundleData/Default@2x.png
              $$PWD/iOS_BundleData/Default-568h@2x.png
              QMAKE_BUNDLE_DATA += BUNDLE_DATA
              @

              Of course, you should never change the generated .xcodeproj !!
              If you need a custom Info.plist, then you need to create one and add it to the .pro as well
              @
              QMAKE_INFO_PLIST = $$PWD/iOS_BundleData/Info.plist
              @

              1 Reply Last reply Reply Quote 0
              • clogwog
                clogwog last edited by

                thank you.
                this works for me.

                1 Reply Last reply Reply Quote 0
                • S
                  syfy323 last edited by

                  Yeah, awesome!

                  I made my icons with the mac app "DevBox" and placed this code in the pro file:

                  @BUNDLE_DATA.files = $$PWD/iOS_BundleData/Icon-60.png
                  $$PWD/iOS_BundleData/Icon-60@2x.png
                  $$PWD/iOS_BundleData/Icon-72.png
                  $$PWD/iOS_BundleData/Icon-72@2x.png
                  $$PWD/iOS_BundleData/Icon-76.png
                  $$PWD/iOS_BundleData/Icon-76@2x.png
                  $$PWD/iOS_BundleData/Icon-Small-40.png
                  $$PWD/iOS_BundleData/Icon-Small-40@2x.png
                  $$PWD/iOS_BundleData/Icon-Small-50.png
                  $$PWD/iOS_BundleData/Icon-Small-50@2x.png
                  $$PWD/iOS_BundleData/Icon-Small.png
                  $$PWD/iOS_BundleData/Icon-Small@2x.png
                  $$PWD/iOS_BundleData/Icon.png
                  $$PWD/iOS_BundleData/Icon@2x.png

                  QMAKE_BUNDLE_DATA += BUNDLE_DATA@

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  • S
                    Safeer Chonengal last edited by

                    @syfy323 said:

                    BUNDLE_DATA.files = $PWD/iOS_BundleData/Icon-60.png
                    $PWD/iOS_BundleData/Icon-60@2x.png
                    $PWD/iOS_BundleData/Icon-72.png
                    $PWD/iOS_BundleData/Icon-72@2x.png
                    $PWD/iOS_BundleData/Icon-76.png
                    $PWD/iOS_BundleData/Icon-76@2x.png
                    $PWD/iOS_BundleData/Icon-Small-40.png
                    $PWD/iOS_BundleData/Icon-Small-40@2x.png
                    $PWD/iOS_BundleData/Icon-Small-50.png
                    $PWD/iOS_BundleData/Icon-Small-50@2x.png
                    $PWD/iOS_BundleData/Icon-Small.png
                    $PWD/iOS_BundleData/Icon-Small@2x.png
                    $PWD/iOS_BundleData/Icon.png
                    $PWD/iOS_BundleData/Icon@2x.png

                    QMAKE_BUNDLE_DATA += BUNDLE_DATA

                    I am little confussed with above thing with following documentation
                    http://doc.qt.io/qt-5/appicon.html#setting-the-application-icon-on-mac-os-x

                    Which one works for setting Icon for iOS App?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post