**
更新apt
**
apt-get update
**
添加ppa
**
apt-get install software-properties-common
**
添加qt ppa
**
qt具体版本的PPA见https://launchpad.net/~beineri
**
add-apt-repository ppa:beineri/opt-qt-5.12.2-bionic
apt-get update
安装qt
**
按需求选择包,一般minimal就可以了
(
qt512-meta-minimal - Minimal core pacakges
qt512-meta-full - The full stack (without *-no-gpl packages)
qt512-meta-dbg-full - Dbg packages (only for x64, not for all modules)
)
sudo apt install qt512-meta-minimal
Source /opt/qt512/bin/qt512-env.sh