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. Mac application menu title [Solved]
QtWS25 Last Chance

Mac application menu title [Solved]

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.6k Views
  • 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.
  • J Offline
    J Offline
    janfaroe
    wrote on last edited by
    #1

    It seems, according to various sources, that the application menu title can be changed by specifying an appropriate TARGET variable value in your .pro file. However, this doesn't work in my case. Im specifying both TARGET and DEPLOYMENT.display_name values. I have set QApplication::name.

    My app bundle has the correct name. The "About" menu is correctly deducting the application name as well.

    Is this a bug, or am I missing something? I'm using Qt 5.1.

    Edit: I should mention that this is happening when I launch my application from Qt Creator.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Could you post a pro file example that shows the behavior ?

      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
      • J Offline
        J Offline
        janfaroe
        wrote on last edited by
        #3

        Hi, thanks for your answer. I couldn't reproduce the problem in a new test project.

        tl;dr: CFBundleExecutable key in Info.plist dictates the application name.

        A bit of fiddling led me to my custom Info.plist file, where the only occurrance of the initial application name was in the "CFBundleExecutable" key - I did an initial search for the string, but Qt Creator was not looking in .plist files. Removing/renaming that key/value pair, the intended application title showed up!

        The executable name (apart from the bundle name) seems to be getting the same name as the TARGET .pro variable, which makes sense, I guess.

        Thanks for tickling me to take a thorough approach ;-)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome :-)

          Indeed the executable name comes from TARGET. IIRC you can modify CFBundleName in your Info.plist to change what is shown in the menu.

          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

          • Login

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