Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] set myapp.app icon
Qt 6.12 LTS is out! See what's new in the release blog

[Solved] set myapp.app icon

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.5k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Good morning, I have a problem setting the icon of executable myapp.app on mac os x. I have followed this guide http://doc.qt.nokia.com/4.7.1/appicon.html
    I put myapp.icns file into a project source folder and then I add this entry ICON = myapp.icns into myapp.pro file.
    When I build ed run program but I don't see icon myapp.app executable program changed. Can you help me,please?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Did you re-run qmake before building?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Yes, I did. I run qmake and rebuild.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Delete the application bundle directory (myapp.app) completely and rebuild. The Info.plist file inside the bundle that contains a link to the icon is not updated once it was put into the bundle.

          In such cases it is generally a good idea to clean the project, remove the application bundle and rebuild (removing the app bundle is often forgotten, though :-) )

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Ok, perfect! now it work. Thank you :)

            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