在官网http://download.qt.io/archive/qt/ 下载安装包,默认linux平台下提供的安装包以run后缀结尾
也可以选择其它地址下载 Qt官网下载地址:https://download.qt.io; 国内镜像下载地址:https://mirrors.cloud.tencent.com/qt/。建议用镜像下载速度快。集成安装包在 official_releases/qt 目录下,新地址:https://download.qt.io/new_archive/qt/

++本文作者原创,转载请附上文章出处与本文链接。++
Ubuntu 下载QT目录
[1 运行安装程序](#1 运行安装程序)
[2 更新sudo](#2 更新sudo)
[3 root密码](#3 root密码)
[4 安装依赖环境](#4 安装依赖环境)
[5 安装GL](#5 安装GL)
[6 更新vim](#6 更新vim)
[7 安装](#7 安装)
[8 配置环境](#8 配置环境)
[9 验证环境](#9 验证环境)
1 运行安装程序

打开终端

cpp
chmod +x qt-opensource-linux-x64-5.14.2.run
//chmod +x 路径/qt-opensource-linux-x64-5.14.2.run
cpp
./qt-opensource-linux-x64-5.14.2.run
//可以直接将run拖到终端

2 更新sudo
sudo apt-get update
3 root密码
cpp
sudo passwd root

4 安装依赖环境
cpp
sudo apt-get update
sudo apt-get install build-essential libgl1-mesa-dev
5 安装GL
$ sudo apt-get install build-essential libgl1-mesa-dev
6 更新vim
cpp
sudo rm /var/lib/dpkg/lock*
sudo apt-get update && sudo apt-get install vim

7 安装







8 配置环境
cpp
$ sudo vim /etc/profile
export PATH="/opt/Qt5.13.2/Tools/QtCreator/bin:$PATH"
export PATH="/opt/Qt5.13.2/5.13.2/gcc_64/bin:$PATH"

9 验证环境



