How to configure Qt Creator to display in applications?

Admittedly, I'm new to the Apple / Mac ecosystem ...

In Max OS X, the default installation with Qt Disk Image is installed in the user's home directory (/ Users / whoami ). This creates thousands of files displayed in Mac OS Finder.

I managed to install in / usr / local / Qt. However, the only way to start Qt Creator is from the terminal.

I would like to know how to configure Qt Creator so that the installed application appears in the "Applications in the Finder Application" application.

+8
qt macos qt-creator
source share
4 answers

Download the current version of Qt Creator:

https://download.qt.io/official_releases/qtcreator/

Open the DMG file. Drag the Qt Creator icon to the Applications shortcut located in the DMG folder.

Alternatively install homebrew :

 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

Then install brew cask

 brew install caskroom/cask/brew-cask 

After installing brew cask you can install the qt creator through this:

 brew cask install qt-creator 

brew cask will install the application and it will appear in the spotlight, but not in the global /Application folder, because instead a symbolic link is created to the ~/Applications folder. If you want it to appear in the global /Applications folder, you need to manually link it yourself using the following command:

 sudo ln -s /opt/homebrew-cask/Caskroom/qt-creator/3.4.0/Qt\ Creator.app/ /Applications/Qt\ Creator.app 

If you already have Qt Creator somewhere on your system, you can simply reference it using the previous command.

+18
source share

Perhaps this is what you want:

First of all, if you do not already have one, get a homebrew . This simplifies the installation and updating of some applications / programs. A useful external tool ( cask ) can also be installed for more general .app packages. This includes the qt creator and probably does what you want.

+2
source share

for example, if you install Qt5.7 in the default folder under / Users / your user /, you can use this command

 ln -s ~/Qt5.7.0/Qt\ Creator.app/ /Applications/ 

Now you are looking at the launcher and you will find it.

+2
source share

Launch Qt Creator once from the terminal, and then, right-clicking on Qt Creator in the Dock, choose Options> Keep In Dock. Or just drag it to change its position in the Dock, it will remain there even after it is closed.

If you want it to work in the Applications folder, just drag it there. If you press Cmd + Option when dragging and dropping into applications, you will create an alias (shortcut) instead of copying the entire application package.

-one
source share

All Articles