7

My Qt application is showing up with a rather unfriendly name on the Mac OS X menu. The name looks like my_funky_app.

How do I change this to something more likeable?

enter image description here

2
  • mainwindow->setTitle("Title"); Commented May 7, 2013 at 19:42
  • 2
    That changes the main window title, but not the application name in the OS X system menu bar...see my edit. Commented May 7, 2013 at 19:45

2 Answers 2

10

Have an Info.plist and set the CFBundleName as your nice name.

<key>CFBundleName</key> <string>FancyAppName<string> 
Sign up to request clarification or add additional context in comments.

1 Comment

For those with CMake, these properties can be set with set_target_properties(). In particular, the application/bundle name is set with MACOSX_BUNDLE_BUNDLE_NAME.
5

Change the TARGET line in your .pro file:

TARGET = FancyAppName 

2 Comments

Awesome, solved. I might add, if you want to use spaces, stick the app name in double quotes. ;)
Is there another way to do this at runtime? See, I need to whitelabel my product and it would be great if I could swap an INI file and this menu change automatically (via code that reads the INI file, of course).

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.