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

前端 未结 5 1637
终归单人心
终归单人心 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:26

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

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

    now you look at your launcher panel,and you will find it.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-20 13:32

    Maybe this is what you want:

    First off, if you don't already have it, get homebrew. It makes installing and updating certain applications/programs really easy. A helpful external tool (cask) can also be installed for more generic .app bundles. This includes qt creator and probably does what you want.

    0 讨论(0)
  • 2021-02-20 13:32

    I used ln -s ~/Qt/Qt\ Creator.app /Applications/ to create symbolic link after Qt installation using the online installer.

    0 讨论(0)
  • 2021-02-20 13:33

    Launch Qt Creator once from Terminal, then while it's running right click on Qt Creator in Dock, select Options->Keep in Dock. Or just drag it to change its position in Dock, it'll stay there even after you close it.

    If you want it to live in Applications folder, just drag it there. If you press Cmd+Option while dragging to Applications, you'll create alias (shortcut) instead of copying the whole app bundle.

    0 讨论(0)
提交回复
热议问题