Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to set application icon on macOS
Forum Updated to NodeBB v4.3 + New Features

How to set application icon on macOS

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 663 Views 2 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.
  • A Offline
    A Offline
    abra
    wrote on last edited by
    #1

    Hi I'm trying to set the application icon on my macOS.
    I'm using Qt 6.5, and macOS 13.4

    And yes, I've read the documentation here, but I still can't make it work: https://doc.qt.io/qt-6/appicon.html, so I must be doing something stupid.

    My noblue.icns file is inside the Contents/Resources folder, see below: Screenshot 2023-09-21 at 21.12.05.png

    My cmake file looks like this:
    Screenshot 2023-09-21 at 21.13.27.png

    Yet I keep getting the default application icon, anyone know what I'm doing wrong?

    SGaistS 1 Reply Last reply
    0
    • A abra

      Hi I'm trying to set the application icon on my macOS.
      I'm using Qt 6.5, and macOS 13.4

      And yes, I've read the documentation here, but I still can't make it work: https://doc.qt.io/qt-6/appicon.html, so I must be doing something stupid.

      My noblue.icns file is inside the Contents/Resources folder, see below: Screenshot 2023-09-21 at 21.12.05.png

      My cmake file looks like this:
      Screenshot 2023-09-21 at 21.13.27.png

      Yet I keep getting the default application icon, anyone know what I'm doing wrong?

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The documentation shows the use of CMAKE_CURRENT_SOURCE_DIR to point to the icon file unlike your code that seems to use APPLICATION_PATH.

      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
      2

      • Login

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