How to set up Qt Creator so that it shows up under Applications?

前端 未结 5 1720
终归单人心
终归单人心 2021-02-20 12:54

Admittedly, I\'m a newbie on the Apple / Mac ecosystem...

On Max OS X, the default install from Qt Disk Image installs to the user\'s home directory (/Users/whoami

5条回答
  •  半阙折子戏
    2021-02-20 13:30

    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 which is 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
    

    Once brew cask is installed you can install qt creator through that:

    brew cask install qt-creator
    

    Brew cask will install the application and it will appear in spotlight but not global /Application folder the because instead it creates a symbolic link to the ~/Applications folder. If you want to have it show up in the global /Applications folder you'll need to manually link it yourself via 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 could just link to it using the previous command.

提交回复
热议问题