Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT/C++ on MAC - How do I hide my dock icon?

Tags:

macos

qt

I'd like my dock icon to be hidden and the app to be represented as a menu bearing icon on the menu bar (right hand side).

like image 220
JasonGenX Avatar asked Jan 17 '11 22:01

JasonGenX


People also ask

How to hide or show the dock on a Mac?

How to Hide or Show the Dock on a Mac 1 From the Apple menu, select System Preferences . 2 Select the Dock icon. On Big Sur, click Dock & Menu Bar . 3 Select the Automatically hide and show the Dock box to make the Dock go away when you're not using it. Remove the check... 4 Close the Dock's preferences pane. More ...

How do I Turn Off the dock on my Mac?

Whether you prefer an always-on Dock or one that goes away when you don't need it, the System Preferences on the Mac is where you make it happen. Select System Preferences from the Apple menu or click the System Preferences icon in the Dock. Click the Dock icon in the first row of the System Preferences window. ​.

How do I hide an app’s icon in dock Dodger?

Drag & drop an app’s icon on Dock Dodger’s window and it will hide the icon, repeat the process to unhide it. You will be asked to enter your account password each time.

How do I get rid of the dock icon on iOS?

While some developers will have the foresight to recognize that the icon is useless and will provide a way of removing it, they are admittedly a very rare breed of developers. If you’ve got quite a few apps that you prefer didn’t have a Dock icon, a little editing of the Info.plist file for the respective app should sweep it under the rug for you.


1 Answers

This will hide the icon:

http://www.macosxtips.co.uk/index_files/disable-the-dock-icon-for-any-application.html

Summarizing the URL, in the dict xml element inside Info.plist in the app, add the lines:

<key>LSUIElement</key>
<string>1</string>

You need to use the appropriate OS APIs to add the menu.

like image 189
Nathan S. Avatar answered Sep 23 '22 08:09

Nathan S.