如何设置Qt Creator,使其显示在“应用程序"下? [英] How to set up Qt Creator so that it shows up under Applications?

查看:134
本文介绍了如何设置Qt Creator,使其显示在“应用程序"下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

诚然,我是Apple/Mac生态系统的新手...

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

在Max OS X上,来自Qt Disk Image的默认安装将安装到用户的主目录(/Users/whoami).这样会创建成千上万个文件显示在Mac OS Finder中.

On Max OS X, the default install from Qt Disk Image installs to the user's home directory (/Users/whoami). This creates thousands of files show up in the Mac OS Finder.

我已经成功安装到/usr/local/Qt.但是,启动Qt Creator的唯一方法是从终端.

I've managed to install to /usr/local/Qt. However, the only way to launch Qt Creator is from the Terminal.

我想知道如何设置Qt Creator,以便已安装的应用程序显示在Finder应用程序中的应用程序"下.

I'd like to know how to set up Qt Creator so the installed app shows up under Applications in Finder app.

推荐答案

下载当前版本的Qt Creator:

Download the current version of Qt Creator:

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

打开DMG文件.将Qt Creator图标拖到DMG文件夹中的Applications快捷方式.

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

或者安装自制软件:

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

然后安装酒桶

brew install caskroom/cask/brew-cask

一旦安装了brew cask,您可以通过以下方式安装qt creator:

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

brew cask install qt-creator

酒桶将安装该应用程序,它将出现在聚光灯下,但不会出现在全局/Application文件夹中,因为相反,它创建了指向~/Applications文件夹的符号链接.如果要将其显示在全局/Applications文件夹中,则需要通过以下命令自己手动链接它:

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

如果您的系统上已有Qt Creator,则可以使用前面的命令链接到它.

If you already have Qt Creator somewhere on your system you could just link to it using the previous command.

这篇关于如何设置Qt Creator,使其显示在“应用程序"下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆