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. Regarding how to add app icon in iPad
Forum Updated to NodeBB v4.3 + New Features

Regarding how to add app icon in iPad

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.7k 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
    Pradeep Kumar
    wrote on 27 Nov 2016, 14:32 last edited by
    #1

    Hi,

    I have added icon to my app in android , icon was app.png.

    I tried adding to Xcode for iPad, i am getting the below errors.

    Xcode/Users/UserName/Documents/build-AppName-iphoneos_clang_Qt_5_7_0_for_iOS-Release/AppName/Images.xcassets: The app icon set named "AppIcon" did not have any applicable content.

    What is the issue and can we add icons for IOS in .pro file mentioning.?. apart from Xcode.

    Thanks,

    Pradeep Kumar
    Qt,QML Developer

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Nov 2016, 00:00 last edited by
      #2

      Hi,

      Where are your icons located ? What format are you using ?

      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
      • P Offline
        P Offline
        Pradeep Kumar
        wrote on 28 Nov 2016, 05:44 last edited by
        #3

        Hi,

        I am using appicon.png and i have added the image in resource file.

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 28 Nov 2016, 07:33 last edited by
          #4

          These are OS specific assets. iOS (as well as Android) has no clue about the Qt Resource System. It won't search anything in there to show an application icon. It's the same for desktop applications.

          Here in the iOS platform notes you have the description of what you need to do in order to provide the correct stuff for your application to be handled correctly by the OS.

          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
          • P Offline
            P Offline
            Pradeep Kumar
            wrote on 28 Nov 2016, 13:21 last edited by
            #5

            Thanks for the answer and link.

            I have added as per the document as below

            ios {
            ios_icon.files = $$files($$PWD/Images/Appname.png)
            QMAKE_BUNDLE_DATA += ios_icon
            }

            But its not reflecting in info.plist, and do i need to mention anything in .pro file apart from the above mentioned lines in my .pro file.

            Thanks,

            Pradeep Kumar
            Qt,QML Developer

            M 1 Reply Last reply 28 Nov 2016, 15:52
            3
            • P Pradeep Kumar
              28 Nov 2016, 13:21

              Thanks for the answer and link.

              I have added as per the document as below

              ios {
              ios_icon.files = $$files($$PWD/Images/Appname.png)
              QMAKE_BUNDLE_DATA += ios_icon
              }

              But its not reflecting in info.plist, and do i need to mention anything in .pro file apart from the above mentioned lines in my .pro file.

              Thanks,

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 28 Nov 2016, 15:52 last edited by
              #6

              @Pradeep-Kumar said in Regarding how to add app icon in iPad:

              But its not reflecting in info.plist,

              Hi
              Im 110% Apple noob, but i wonder if related to this
              http://stackoverflow.com/questions/40359476/setup-ios-icon-from-qt
              and
              "Open the Xcode bulid file and go to build Settings>product bundle identifier . Now set any bundle id in the field . Now run the project , it will automatically create info.plist file and other set up like standard ."

              Still not into .pro though :(

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 28 Nov 2016, 19:47 last edited by
                #7

                You have to create a custom info.plist file. For that you can simply build your application once, then copy the Info.plist file from the bundle to your sources and modify it.

                It's all explained in the document I linked to.

                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
                1

                6/7

                28 Nov 2016, 15:52

                • Login

                • Login or register to search.
                6 out of 7
                • First post
                  6/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved